mirror of
https://github.com/uglyboy-tl/obsidian-ink-player.git
synced 2026-07-22 05:42:02 +00:00
fix(compiler): 移除 YAML frontmatter 避免解析错误
This commit is contained in:
parent
117563567a
commit
b75e90b26d
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ export const compiledStory = (): InkStory | null => {
|
|||
}
|
||||
|
||||
try {
|
||||
const ink: InkStory = createInkStory(markdown, {
|
||||
const content = markdown.replace(/^---\n[\s\S]*?\n---\n?/, "");
|
||||
const ink: InkStory = createInkStory(content, {
|
||||
title: filePath,
|
||||
fileHandler,
|
||||
errorHandler,
|
||||
|
|
|
|||
Loading…
Reference in a new issue