sirthias/pegdown

StrongEmphSuperNode not properly parsed after special chars

martinklepsch opened this issue · 5 comments

There's a testcase here: martinklepsch@aa36ef5

Somehow parsing (**this** ... will not properly turn this into a StrongEmphSuperNode.

vsch commented

That is correct. Emphasis markers have to be preceded by a blank.

Interesting. I didn't know. How does one achieve something like (this is bold then? Apparently Github Flavoured Markdown supports it.

vsch commented

Yes, GFM has a lot of changes. Some good, some not so much. For example, I recently found out that you can indent nested lists with just one space for second level, and two spaces for the third.

It is changing an already loose spec for Markdown in areas where it isn't that critical.

vsch commented

Forgot to answer your question:

(<strong>test</strong>

See:

(test

As far as I can tell, CommonMark supports this: http://spec.commonmark.org/0.22/#example-355

It looks like the most complete markdown specification.