Skip to content

Instantly share code, notes, and snippets.

@tef
Last active July 21, 2019 03:31
Show Gist options
  • Save tef/6411393 to your computer and use it in GitHub Desktop.
Save tef/6411393 to your computer and use it in GitHub Desktop.

I hate markdown

  1. Here is a list. I can do numbered lists.

  2. I can do a list entry followed by two spaces.

    This means this is in the same paragraph

  3. If I want a code block (with syntax highlighting, inside a list, something breaks:

    print("This needs a blank line before the code block")
  4. And we're back to square one.

@tef
Copy link
Author

tef commented Sep 2, 2013

Markdown does support code inside of lists (indent by 8 spaces, not four), but you can't get syntax highlighting.

@sir-ragna
Copy link

That is a feature of Github flavored markdown(GFM).
So you might want to check if a library understands GFM before starting any projects, if that is what you are planning to do.

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