Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
b2de8df538
|
|||
25ae8b0bcb
|
|||
b5a427d669
|
|||
455915dd98
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -29,7 +29,7 @@
|
||||
"@types/qrcode": "^1.5.0",
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"version": "0.1.5"
|
||||
"version": "0.1.7"
|
||||
},
|
||||
"node_modules/@tootallnate/once": {
|
||||
"version": "2.0.0",
|
||||
@@ -3483,5 +3483,5 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "0.1.5"
|
||||
"version": "0.1.7"
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@doc-utils/markdown2html",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.7",
|
||||
"publishConfig": {
|
||||
"registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/"
|
||||
},
|
||||
|
@@ -68,11 +68,11 @@ foo:
|
||||
# This is some markdown
|
||||
`;
|
||||
|
||||
const { frontmatter, markdown } = process_frontmatter(raw_content);
|
||||
const { frontmatter, document } = process_frontmatter(raw_content);
|
||||
|
||||
console.log(frontmatter.title); // "Example Markdown with front matter"
|
||||
console.log(frontmatter.foo); // [ "bar", "baz" ]
|
||||
console.log(markdown); // "\n# This is some markdown\n"
|
||||
console.log(document); // "\n# This is some markdown\n"
|
||||
```
|
||||
|
||||
|
||||
|
@@ -88,7 +88,5 @@ export function parse_attributes(text: string, fallback_id?: Lazy<string>) {
|
||||
}
|
||||
}
|
||||
|
||||
console.log(attrs);
|
||||
|
||||
return attrs;
|
||||
}
|
||||
|
Reference in New Issue
Block a user