Feat: Enable fuzzyLink for markdown-it v15

Co-authored-by: gemini-3.7-flash <noreply@google.com>
This commit is contained in:
2026-09-01 20:03:55 -07:00
parent 799baf2079
commit 0d7264eb29

View File

@@ -2,6 +2,7 @@ import mathjax3 from 'https://esm.sh/markdown-it-mathjax3';
import { copyToClipboard } from './utils.js'; import { copyToClipboard } from './utils.js';
export const md = window.md = window.markdownit({ html: false, linkify: true, typographer: true, breaks: true }).use(mathjax3); export const md = window.md = window.markdownit({ html: false, linkify: true, typographer: true, breaks: true }).use(mathjax3);
md.linkify.set({ fuzzyLink: true });
export function enhanceCodeBlocks(root, doHL = true) { export function enhanceCodeBlocks(root, doHL = true) {
window.$(root).find('pre>code').each((i, code) => { window.$(root).find('pre>code').each((i, code) => {