Skip to content

Instantly share code, notes, and snippets.

@cyogian
Last active September 14, 2019 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyogian/f73a8825e3e6c2b9ce1de5db4a620628 to your computer and use it in GitHub Desktop.
Save cyogian/f73a8825e3e6c2b9ce1de5db4a620628 to your computer and use it in GitHub Desktop.
This is a sample gist for a freeCodeCamp project.

Markdown Editor On Left

HTML Preview On Right

Link

This is the default text grabbed from a Github gist.

Inline Code

Inline code has back-ticks around it.

Code Block

Blocks of code are either fenced by lines with three back-ticks, or are indented with four spaces. I recommend only using the fenced code blocks -- they're easier and only they support syntax highlighting.

var s = "JavaScript syntax highlighting";
alert(s);
s = "Python syntax highlighting"
print s

List Items

  1. First ordered list item
  2. Another item
  • Unordered sub-list.
  1. Actual numbers don't matter, just that it's a number
  2. Ordered sub-list
  3. And another item.

You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅ Note that this line is separate, but within the same paragraph.⋅⋅ This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

  • Unordered list can use asterisks
  • Or minuses
  • Or pluses

Blockquotes

Blockquotes are very handy in email to emulate reply text. This line is part of the same quote.

Quote break.

This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote.

An image.

Finally a Bold Text!

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