mirror of
https://github.com/sune-org/sune.git
synced 2026-09-18 12:45:45 +00:00
Feat: Enable fuzzyLink for markdown-it v15
Co-authored-by: gemini-3.7-flash <noreply@google.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import mathjax3 from 'https://esm.sh/markdown-it-mathjax3';
|
||||
import { copyToClipboard } from './utils.js';
|
||||
|
||||
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) {
|
||||
window.$(root).find('pre>code').each((i, code) => {
|
||||
|
||||
Reference in New Issue
Block a user