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 afcd580 commit 71f395f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/transform/plugins/anchors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ 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>';

Check failure on line 174 in src/transform/plugins/anchors/index.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Replace `'<span·class="visually-hidden"·data-no-index="true">'·+·escapeHtml(tokens[index].content)·+·'</span>'` with `(⏎············'<span·class="visually-hidden"·data-no-index="true">'·+⏎············escapeHtml(tokens[index].content)·+⏎············'</span>'⏎········)`
};
};

Expand Down

0 comments on commit 71f395f

Please sign in to comment.