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 217 forks source link

Autolinks -> email convertion should be optional/removeable #105

Closed BowlingX closed 9 years ago

BowlingX commented 11 years ago

Currently links like mail@domain.com are converted if Extensions.AUTOLINKS is enabled. Is it possible to exclude emails from that?

It seems not possible to override that setting because it's hardcoded into org.pegdown.Parser which itself is not easily overridable because it's created with reflection and I'm getting java.lang.IllegalAccessError if i try to do that. (some instance variables are protected).

jirutka commented 11 years ago

Actually you can subclass org.pegdown.Parser, but your class must reside in the same package (org.pegdown). :/