Skip to content

Alternative Markdown

asofold edited this page May 24, 2015 · 1 revision

Markdown inside code blocks

foo
foo
foo
test _emphasis_ (span)
test _emphasis_ (span)
test _emphasis_ (block)

More complicated

* this is _not_ a list item
* this is _not_ a list item
* this _is_ a list item

With indent

This text is no code block: if it was, the closing `
` would be too and the HTML block would be invalid.
Markdown content in HTML blocks is assumed to be 
indented the same as the block opening tag.

**This should be the third paragraph after the header.**
</div>

Code block with rogue </div>s in Markdown code span and block

This is a code block however:

    </div>

Funny isn't it? Here is a code span: `</div>`.

</div>
* List item, not a code block

Some text

  This is a code block.

No code block in markdown span mode

This is not a code block since Markdown parse paragraph content as span. Code spans like `

` are allowed though.

_Hello_ _world_

Preserving attributes and tags on more than one line:

Some _span_ content.

Header confusion bug

Hello World! ============

Hello World!

Source: https://github.com/trentm/python-markdown2/blob/master/test/php-markdown-extra-cases/Inline%20HTML%20with%20Markdown%20content.text

More: http://daringfireball.net/projects/markdown/syntax#html

Clone this wiki locally