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

Wiki links with anchor reference, MultiMarkdown style footnotes and fix for inline code mistaken for fence startMul #201

Open vsch opened 8 years ago

vsch commented 8 years ago

update test.

Not critical for most since no one complained about it. I only noticed it because I am testing the plugin.

vsch commented 8 years ago

Added fixes for #203 and #204

vsch commented 8 years ago

PHP Markdown Extra style footnotes added. Opted out for PHP Markdown Extra not the MultiMarkdown ones. Did not see the need for long footnote names. Can be changed if someone desires alphanumeric footnote references instead of integers.

I did not include this extension in the ALL extensions flags to avoid having to potentially rework existing tests. Anyone who wants this extension will need to add the flag to Extensions.ALL.

Tests added for both with and without extension parsing of markdown with footnotes.

I also bit the bullet and ran the IntelliJ reformat code command on the parser code so that it is uniformly formatted and without trailing blanks otherwise every commit to master I would have to go through the chunks and discard format only ones.

vsch commented 8 years ago

Changed footnotes to be MultiMarkdown style. Footnote labels now allow alphanumeric, dash, dot, underscore. The rendered footnotes are sequential integers as before.

Tests updated.

This fixes #140.