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

Markdown: Add an option to diable heading link generation #2191

Open
ravilov opened this issue Dec 28, 2023 · 1 comment
Open

Markdown: Add an option to diable heading link generation #2191

ravilov opened this issue Dec 28, 2023 · 1 comment

Comments

@ravilov
Copy link

ravilov commented Dec 28, 2023

I often have hyperlinks as part of my headings. Things such as:

## There is a [link](http://localhost/) here

That generally works fine, however in Markor it results in HTML generated like so:

<h2 id="foo"><a href="#foo">There is a <a href="http://localhost/">link</a> here</a></h2>

So I end up with nested hyperlinks.

Would it be possible to have an option to not generate the anchor hyperlinks (but still generate IDs for headings)? Thanks.

Information

Android version: 13
Device: Samsung A53
App Version: 2.11.1 (148)

Source

F-Droid

Format / File type

Markdown

@gsantner
Copy link
Owner

Flexmark is the parser, you can experiment with the possible options. https://github.com/vsch/flexmark-java/wiki/Extensions.

@gsantner gsantner changed the title Add an option to not generate heading links Markdown: Add an option to not generate heading links Mar 27, 2024
@gsantner gsantner changed the title Markdown: Add an option to not generate heading links Markdown: Add an option to diable heading link generation Mar 28, 2024
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

2 participants