sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 218 forks source link

Disable standard Markdown rules #218

Closed md384 closed 8 years ago

md384 commented 8 years ago

Is it possible to disable a rule, e.g. disable reference links? The reason I ask is that I am creating a plugin with various rules that use square brackets (which I don't want to change) which interfere with the reference link rules particularly where I have two adjacent square bracket rules, e.g.

[A:123][B:456]

where [A:123] creates a link for an object A with some parameter 123 and similarly for [B:456].

vsch commented 8 years ago

@md384, as far as I can tell from the history of issues, yes.

References are part of standard Markdown so they do not have an extension setting that can be disabled.

md384 commented 8 years ago

@vsch Ok thanks for your help.