We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89e54c commit 9fdbec4Copy full SHA for 9fdbec4
server/utils/readme.ts
@@ -558,8 +558,8 @@ export async function renderReadmeHtml(
558
return `<h${semanticLevel} id="${id}" data-level="${depth}"${preservedAttrs}><a href="#${id}">${displayHtml}</a></h${semanticLevel}>\n`
559
}
560
561
+ const anchorTokenRegex = /^<a(\s.+)?\/?>$/
562
renderer.heading = function ({ tokens, depth }: Tokens.Heading) {
- const anchorTokenRegex = /^<a(\s.+)?\/?>$/
563
const isAnchorHeading =
564
anchorTokenRegex.test(tokens[0]?.raw ?? '') && tokens[tokens.length - 1]?.raw === '</a>'
565
0 commit comments