michelf/php-markdown — Issue #11: Fenced code in footnotes
Author: waylan
Created: 2012-01-25 19:04:38+00:00
State: open

Unlike lists (see issue #10) this works fine (showing footnote def only):

[^1]: ~~~
code
~~~~

So does this:

[^1]:
~~~
code
~~~

And this appears to work properly (but may not be if you consider the next example):

[^1]: ~~~
code
~~~~

This does not work for sure (all indentation is lost):

[^1]: ~~~
code
indented code
~~~

Which makes me wonder if perhaps the first example should not work (like lists currently work).

This does work:

[^1]:
~~~
code
indented code
~~~

And weirdly this works two (notice lack of indentation to indicate we are in a footnote def):

[^1]:
~~~
code
indented code
~~~

But maybe that last one is right because we have no blank line??? Adding a black line takes it out of the footnote and leaves it in the main doc body - as it should. That said, with 2 defs this is hard to read even though it works fine:

[^1]:
~~~
code
indented code
~~~
[^2]:
~~~
more code
~~~

Requiring indentation makes it much more readable.