Skip to content

Commit

Permalink
Merge pull request #534
Browse files Browse the repository at this point in the history
Update CoreNodeRenderer.java
  • Loading branch information
vsch committed Apr 28, 2023
2 parents 2b676cc + f297293 commit 402dfa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void render(Document node, NodeRendererContext context, HtmlWriter html) {

@SuppressWarnings("MethodMayBeStatic")
void render(Heading node, NodeRendererContext context, HtmlWriter html) {
if (context.getHtmlOptions().renderHeaderId) {
if (node.isExplicitAnchorRefId() || context.getHtmlOptions().renderHeaderId) {
String id = context.getNodeId(node);
if (id != null) {
html.attr("id", id);
Expand Down

0 comments on commit 402dfa7

Please sign in to comment.