Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom WikiLinkRenderer does not get considered if Extensions.ANCHORLINKS is turned off #239

Open
sunitapatro opened this issue Jul 25, 2016 · 0 comments

Comments

@sunitapatro
Copy link

sunitapatro commented Jul 25, 2016

Hi,

I am using pegdown 1.5.0, and found that after upgrading pegdown 1.4.2 to 1.5.0, there was a new extension ANCHORLINKS and if it is turned off, then the custom wikiLinkRenderer is not considered.
My use case is to render headers with out anchor links but render wikilinks as specified by the custom wikiLinkRenderer. And it was working as expected with 1.4.2.
Here is my code,

PegDownProcessor pegDownProcessor = new PegDownProcessor(Extensions.ALL - (headerLinks ? 0 : Extensions.ANCHORLINKS) - (hardwrap ? 0 : Extensions.HARDWRAPS) + (allowHtml ? 0 : Extensions.SUPPRESS_ALL_HTML));
processed = pegDownProcessor.markdownToHtml(data, new ConfluenceWikiLinkRenderer(info, xhtmlContent));

ConfluenceWikiLinkRenderer is not considered if Extensions.ANCHORLINKS is turned off.

Is there a way to make wikiLinks render with Extensions.ANCHORLINKS turned off?

Any help is appreciated.
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant