Skip to content

Commit 9c7e702

Browse files
committed
fix: remove deprecated style option
1 parent e70b8fa commit 9c7e702

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/markdown-it/markmap.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/markdown-it/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { logger } from '@/shared'
44

55
const 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
})

0 commit comments

Comments
 (0)