Skip to content

Commit

Permalink
handle invalid front-matter errors (#243)
Browse files Browse the repository at this point in the history
Use an object config to skip gray-matter's caching (see jonschlinkert/gray-matter#166)
closes #215
  • Loading branch information
Fil authored Nov 30, 2023
1 parent 2399490 commit 47fe518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ function toParseCells(pieces: RenderPiece[]): CellPiece[] {
}

export async function parseMarkdown(source: string, root: string, sourcePath: string): Promise<ParseResult> {
const parts = matter(source);
const parts = matter(source, {});

// TODO: We need to know what line in the source the markdown starts on and pass that
// as startLine in the parse context below.
const md = MarkdownIt({html: true});
Expand Down

0 comments on commit 47fe518

Please sign in to comment.