Skip to content

Commit

Permalink
修复:代码块渲染失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
guobao2333 committed May 2, 2024
1 parent 63736ce commit 76c1f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtsx/github_markdown.mtsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

// 不打算适配制表符(因为会有bug暂时没法修复/: )
defines: [ // (?m) ^匹配每行开头
"prefix": /(?m)^ */
"prefix": /(?:^|\n *)/
"title": {match: include("prefix") + /#{1,6} .*/, 0: "title"}
"escape": {match: /\\./, 0: "escape"}

Expand Down

0 comments on commit 76c1f9a

Please sign in to comment.