Closed FSX closed 13 years ago
Hey Frank, thanks for spotting this!
We had this little issue where our parser was being too strict when parsing the headers of a table.
| This | Does | Parse |
|------|------|------:|
| Foo | Bar | Foo |
| This | Used to | Fail |
| ------ | ----- | ------: |
| Foo | Bar | Foo |
Now we are more lax about adding whitespace around your headers. Your examples are now parsing properly, at least on my computer. :)
Regarding those flags: MKDEXT_NO_INTRA_EMPHASIS
changes the emphasis parser so you can write words with underscores between them without triggering emphasis. For example, the word this_is_bongos
by default renders to this<em>is</em>bongos
, but with that flag it's just rendered to this_is_bongos
. This is an extension we enable by default in GitHub Flavored Markdown (yes_we_do), because GitHub is about programming, and 99% of the time, when you add underscores to a word, you don't mean to put emphasis there.
The lax HTML blocks flags allows you to skip a restriction in the Markdown standard that says that all inline HTML blocks must be preceded and followed by an empty line.
This is a paragraph
<div>
This is some inline HTML. This block would not render properly according to the
markdown standard, because it's not preceded by an empty line.
</div>
This is another paragraph
<div>
This block renders properly
</div>
You can use the MKDEXT_NO_INTRA_EMPHASIS
flag to disable the 'blank newline' requirement.
I think that's it, hope that was informative!
Thanks as always for reporting -- oh, and I've just seen your query on the GitHub IRC channel... Probably a bad idea, because I'm a hardcore idler. If you need anything from me, just PM me here in GitHub and I'll answer much more quickly.
Cheers!
Thanks for responding and fixing this so quickly. It also works here.
I have the following source:
And this is the output:
The table is not converted to HTML. I used the Upskirt example with all markdown extensions enabled. The table syntax is from the PHP Markdown Extra page.
I'm not sure what
MKDEXT_NO_INTRA_EMPHASIS
andMKDEXT_LAX_HTML_BLOCKS
are supposed to do.