Skip to content

Instantly share code, notes, and snippets.

@skyl
Last active June 10, 2024 05:07
Show Gist options
  • Save skyl/662b97e95817ba40be86460a3d77c4b0 to your computer and use it in GitHub Desktop.
Save skyl/662b97e95817ba40be86460a3d77c4b0 to your computer and use it in GitHub Desktop.

You can find the complete source of this zPage here


Free2Z Markdown Syntax

Free2Z-flavored markdown (F2ZM) is a superset of Github-flavored markdown which is a superset of basic markdown. F2ZM is a powerful way to write and express ideas with videos, images, tables, footnotes, math equations, code samples, links, typography, and such.

Embeds

You can embed a plethora of exciting content with the embed[URL] directive.

Feast your eyes on this mesmerizing fractal video:

::embed[https://www.youtube.com/watch?v=q2fIWB8o-bs]

Try any of over 1900 providers! If something isn't as great as it could be let us know!

Math

Free2Z math is a little different from github. Start inline math with two dollar signs, $$. Start display math with blank lines around the $$ to begin and end.

You can do inline math and $$\LaTeX$$ like: $$\int_{a}^{b} x^2 dx$$.

You can also do display math like:

$$ \oint_{C} \vec{E} \cdot d\vec{A} = \frac{1}{\varepsilon_0} \int_{\text{volume}} \rho, dV, \quad \sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}, \quad \lim_{x \to 0} \frac{\sin(x)}{x} = 1 $$

So many symbols to use! $$\aleph_{0}$$.

Note that a literal dollar sign is just a literal dollar sign, "I have $80 and Jim has $20".

Code Blocks

You can create code blocks and specify the language.

Python:

def fibonacci(n: int) -> int:
    if n <= 1:
        return n
    else:
        return fibonacci(n - 1) + fibonacci(n - 2)

TypeScript:

interface TimeTraveler {
    name: string,
    originYear: number,
    destinationYear: number,
}

You can also add line numbers and highlight particular lines:

function timeTravel(person, year) {
  if (year > 2100) {
    console.warn("Time travel beyond 2100 is not recommended!")
  }
  person.destinationYear = year;
}

Github-flavored Markdown Extensions

F2Z markdown has all of GFM except for emojis ;9 You can add your own how you like! 😉

Tables

Planet Distance from Sun (AU) Fun Fact
Mercury 0.39 Smallest planet in our solar system
Venus 0.72 Hottest planet with a surface temp of 900°F
Earth 1.00 The only planet known to support life
Mars 1.52 Home to the tallest volcano in the solar system, Olympus Mons

Task lists

  • Task 1
  • Task 2

Strikethrough

This was a mistake

Autolinks

You can just add a link and it will be a link. Use a hyperlink like https://free2z.com or and email like skylar@free2z.com

Footnotes

This is a footnote reference1.

Regular Markdown reference

Header 3

Header 4

Header 5
Header 6

This is a paragraph about a T-Rex 🦖 playing the guitar 🎸.

This is a quote from Albert Einstein: "The difference between stupidity and genius is that genius has its limits."

Lists

This is a bullet list of some quirky animals:

  • Axolotl
  • Blobfish
  • Pangolin

Enumerated list of peculiar fruits:

  1. Salak
  2. Jabuticaba
  3. Mangosteen

Emphasis

You can use italics or bold or both italics and bold.

Images

Space Cat

For more on basic syntax you can checkout this guide

Footnotes

  1. This is the footnote content.

@skyl
Copy link
Author

skyl commented Apr 22, 2023

You can see how it renders on free2z here: https://free2z.com/free2z/zpage/flavored-markdown

@skyl
Copy link
Author

skyl commented Jun 10, 2024

Adding all of GFM syntax now ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment