kjdev / hoextdown

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

Special attributes and code blocks #2

Closed m-ou-se closed 9 years ago

m-ou-se commented 9 years ago

I was working on markdown that contains instructions with code blocks, and many of those code blocks end with a }, which triggers the special attributes extension.

I'd like to use special attributes for headers, without breaking things like:

1. Blah:

        $ ls test/{foo,bar}

(Here, the output displays only $ ls test/, the {foo,bar} is not visible in the resulting page anymore.)

Should the special attributes extension be less sensitive, such that it does not trigger for things like this? Or, otherwise, should there be a way to disable it for code blocks and only have it for headers and such?