Skip to content

Instantly share code, notes, and snippets.

@Vaguery
Created February 13, 2015 11:19
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 Vaguery/f145dcbb418aca05383c to your computer and use it in GitHub Desktop.
Save Vaguery/f145dcbb418aca05383c to your computer and use it in GitHub Desktop.
kramdown div bug?

General kramdown test

{: option parse_block_html='true'}

1. This is a free-standing paragraph, separated by newlines from its neighbors.

2. This is a div, separated by newlines from its neighbors in the sourcecode.
3. This is a div with an attribute, separated by newlines from its neighbors.

4. This paragraph has a div immediately following it, without newlines separating them.

The div should be rendered immediately follow the paragraph, and not in paragraph wrapping.

5. This paragraph has a div immediately following it, but starting after a newline.

The div should immediately follow the paragraph.

6. This paragraph has a div after it, without newlines separating them.

But this div has an attribute.

7. This paragraph also has a div in it, starting after a newline.

This div also has an attribute.

In kramdown 1.5.0, examples 4, 6 and 7 fail. The <div> is rendered as HTML-escaped text, complete with its tags.

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