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 061f660 commit d244ccdCopy full SHA for d244ccd
web/scripts/build.mjs
@@ -98,15 +98,14 @@ async function buildVersionMenu(versions, currentVersion) {
98
}
99
100
const marked = new Marked();
101
+const markedInline = new Marked();
102
const customRenderer = {
103
link({ href, text }) {
- if (/!\[.*\]\(.*\)/.test(text)) {
104
- text = marked.parseInline(text);
105
- }
+ const htmlContent = markedInline.parseInline(text);
106
const isExternal = /^https?:\/\//.test(href);
107
let html = `<a href="${href}"`;
108
if (isExternal) html += ' target="_blank"';
109
- html += `>${text}</a>`;
+ html += `>${htmlContent}</a>`;
110
return html;
111
112
};
0 commit comments