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

Update CoreNodeRenderer.java #534

Merged
merged 1 commit into from
Apr 28, 2023
Merged

Update CoreNodeRenderer.java #534

merged 1 commit into from
Apr 28, 2023

Conversation

jochenberger
Copy link
Contributor

Render node ids if explicitly set
fixes #476

Render node ids if explicitly set
fixes vsch#476
@vsch
Copy link
Owner

vsch commented Apr 28, 2023

@jochenberger, thank you for the PR. It will be in the next release.

@vsch vsch merged commit 402dfa7 into vsch:master Apr 28, 2023
@vsch
Copy link
Owner

vsch commented Apr 28, 2023

After taking a closer look and running tests, I realized that this needs a bit of clarification. So I reverted it.

Main question is: why do you not have renderHeaderId option enabled?

When rendering anchor links for headers, header ids are not rendered because the id is transferred to the anchor link. Otherwise, you get two elements with the same ID.

What issue are you having with the current implementation, if you enable renderHeaderId option?

@jochenberger
Copy link
Contributor Author

I think the answer is in #476. I'm trying to assign IDs with the attributes extension, but they are not being rendered.

travkin79 pushed a commit to advantest/flexmark-java that referenced this pull request Jun 3, 2024
Update CoreNodeRenderer.java
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

Successfully merging this pull request may close these issues.

ID attibutes specifed with {#} syntax don't appear when not using anchorlinks.
2 participants