File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/slidev/node/plugins Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ import Katex from './markdown-it-katex'
9
9
import { loadSetups } from './setupNode'
10
10
import Prism from './markdown-it-prism'
11
11
import Shiki , { resolveShikiOptions } from './markdown-it-shiki'
12
- import type { KatexOptions } from 'katex'
13
- import type MarkdownIt from 'markdown-it'
14
12
import type { ShikiOptions } from '@slidev/types'
13
+ import type MarkdownIt from 'markdown-it'
14
+ import type { KatexOptions } from 'katex'
15
15
16
16
const DEFAULT_SHIKI_OPTIONS : ShikiOptions = {
17
17
theme : {
@@ -155,5 +155,5 @@ export function transformMermaid(md: string): string {
155
155
* Escape `{{}}` in code block to prevent Vue interpret it, #99
156
156
*/
157
157
export function escapeVueInCode ( md : string ) {
158
- return md . replace ( / { { ( .* ) } } / g, '{{$1}}' )
158
+ return md . replace ( / { { ( .* ? ) } } / g, '{{$1}}' )
159
159
}
You can’t perform that action at this time.
0 commit comments