diff --git a/modules/markdown-it-sup.js b/modules/markdown-it-sup.js index 07584de..3dfa71f 100644 --- a/modules/markdown-it-sup.js +++ b/modules/markdown-it-sup.js @@ -58,7 +58,7 @@ function superscript(state, silent) { token.markup = "^"; if (content.match(regexForIds)) { - const theLink = supText.match(regexForIds)[0].replace("(", "").replace(")", ""); + const theLink = supText.match(regexForIds)[0].replace("(#", "").replace(")", ""); token.attrPush([ "id", theLink ]); }