fix: columns

This commit is contained in:
2026-03-23 22:22:01 +08:00
parent 6f8be557b4
commit 028074e4f1
2 changed files with 68 additions and 1 deletions
+4 -1
View File
@@ -5,6 +5,7 @@ import markedAlert from "marked-alert";
import markedMermaid from "./mermaid";
import markedTable from "./table";
import {gfmHeadingId} from "marked-gfm-heading-id";
import markedColumns from "./columns";
let globalIconPrefix: string | undefined = undefined;
function overrideIconPrefix(path?: string){
@@ -45,8 +46,10 @@ const marked = new Marked()
}
},
]), {
extensions: [
...markedColumns(),
{
// 自定义代码块渲染器,支持 yaml/tag 格式
extensions: [{
name: 'code-block-yaml-tag',
level: 'block',
start(src: string) {