Skip to content

Commit

Permalink
feat: add merge included replace logic
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed Aug 26, 2024
1 parent 85c0436 commit afcd580
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transform/plugins/anchors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ const index: MarkdownItPluginCb<Options> = (md, options) => {
}

md.renderer.rules.anchor_hidden_desc = function (tokens, index) {
return '<span class="visually-hidden">' + escapeHtml(tokens[index].content) + '</span>';
return '<span class="visually-hidden">'
+ escapeHtml(tokens[index].content)
+ '</span>';
};
};

Expand Down

0 comments on commit afcd580

Please sign in to comment.