File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function markmap(md: MarkdownIt) {
5757 // parse frontmatter
5858 const { data : rawFrontmatter , content } = matter ( _content )
5959 const frontmatter = parseFrontmatter ( rawFrontmatter , content )
60- const { id, style , markmap, options } = frontmatter
60+ const { id, markmap, options } = frontmatter
6161 const mergedOptions = {
6262 ...config . globalOptions ,
6363 ...options ,
@@ -73,9 +73,8 @@ export function markmap(md: MarkdownIt) {
7373 height ,
7474 config . toolbar
7575 )
76- const styleHTML = `<style>${ style } </style>`
7776
78- return ` ${ wrapHTML } \n ${ styleHTML } `
77+ return wrapHTML
7978 }
8079
8180 const defaultFenceRenderer = md . renderer . rules . fence
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { logger } from '@/shared'
44
55const frontmatterSchema = z . object ( {
66 id : z . string ( ) . optional ( ) ,
7- style : z . string ( ) . optional ( ) . default ( "" ) ,
87 markmap : z . object ( { } ) . passthrough ( ) . optional ( ) . default ( { } ) ,
98 options : z . object ( { } ) . passthrough ( ) . optional ( ) . default ( { } ) ,
109} )
You can’t perform that action at this time.
0 commit comments