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

STRIKETHROUGH also enables ANCHORLINKS #159

Closed kevin-lee closed 8 years ago

kevin-lee commented 9 years ago
Pegdown version JDK Version
1.5.0 8

If STRIKETHROUGH is set, ANCHORLINKS is also enabled.

So the following code enables both STRIKETHROUGH and ANCHORLINKS although I didn't set ANCHORLINKS. I had to enable DEFINITIONS (or FENCED_CODE_BLOCKS) as well otherwise STRIKETHROUGH doesn't work.

new PegDownProcessor(DEFINITIONS | STRIKETHROUGH)
kevin-lee commented 9 years ago

Similarly, using DEFINITIONS and ANCHORLINKS together enables STRIKETHROUGH.

new PegDownProcessor(DEFINITIONS | ANCHORLINKS)
tcreswick commented 9 years ago

This is part of a bigger issue - see my newly raised issue here: https://github.com/sirthias/pegdown/issues/161

kevin-lee commented 9 years ago

@tcreswick Nice, you can fix it and pull-request. :smile:

tcreswick commented 9 years ago

Have created pull request https://github.com/sirthias/pegdown/pull/162 for this.

kevin-lee commented 9 years ago

Cool! :+1:

sirthias commented 8 years ago

Duplicate of #161.