From 71f395fe51d7a15d1d5d742939cc556fd8fea278 Mon Sep 17 00:00:00 2001 From: Maxim Karpov Date: Mon, 26 Aug 2024 18:08:14 +0300 Subject: [PATCH] feat: add merge included replace logic --- src/transform/plugins/anchors/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/transform/plugins/anchors/index.ts b/src/transform/plugins/anchors/index.ts index 8f3bc508..83b86f86 100644 --- a/src/transform/plugins/anchors/index.ts +++ b/src/transform/plugins/anchors/index.ts @@ -171,9 +171,7 @@ const index: MarkdownItPluginCb = (md, options) => { } md.renderer.rules.anchor_hidden_desc = function (tokens, index) { - return '' - + escapeHtml(tokens[index].content) - + ''; + return '' + escapeHtml(tokens[index].content) + ''; }; };