kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Inconsistent parsing of curly braces with special attributes enabled #24

Closed mathewinwood closed 8 years ago

mathewinwood commented 8 years ago

Handling of {} braces is inconsistent when special attributes are enabled. See test.md.txt for a repro case:

$ hoedown --special-attribute < ./test.md 

What I see is that in specific cases only, text within {...} is removed from the output, and replaced with this:

  </p>

  <p>

in the output. The exact same text inside {...} in other contexts is left unaffected in the outputted HTML. Again, see the repro case above.

What I've tried:

The fact that a single space fixes the issue makes me suspect a parsing issue. The problem does not repro without the --special-attribute flag.

Context: I have a documenation pipeline that combines markdown processing with javadoc, allowing me to write markdown formatted docs that can also link to generated Java docs using the standard javadoc {@link class.Name link} syntax.

mathewinwood commented 8 years ago

Thanks fox fixing!