File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export function markmap(md: MarkdownIt) {
5656 // transform content
5757 const { root, frontmatter : rawFrontmatter } = transformer . transform ( content )
5858 // parse frontmatter
59- const frontmatter = parseFrontmatter ( rawFrontmatter , content )
59+ const frontmatter = parseFrontmatter ( rawFrontmatter )
6060 const { id, markmap, options } = frontmatter
6161 const mergedOptions = {
6262 ...config . globalOptions ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const frontmatterSchema = z.object({
1414 * @param data The frontmatter data to parse.
1515 * @param identifier The identifier to generate a default id.
1616 */
17- export const parseFrontmatter = ( data : Record < string , any > = { } , identifier : string ) => {
17+ export const parseFrontmatter = ( data : Record < string , any > = { } ) => {
1818 const parsedData = frontmatterSchema . safeParse ( data )
1919 if ( ! parsedData . success ) {
2020 const validationError = fromError ( parsedData . error )
You can’t perform that action at this time.
0 commit comments