@forwardimpact/libdoc 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/frontmatter.js +2 -2
- package/package.json +6 -6
package/frontmatter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { parse } from "yaml";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Parse simple front matter from markdown content
|
|
@@ -20,7 +20,7 @@ export function parseFrontMatter(content) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const [, frontMatter, remainingContent] = match;
|
|
23
|
-
const parsedData =
|
|
23
|
+
const parsedData = parse(frontMatter);
|
|
24
24
|
|
|
25
25
|
return {
|
|
26
26
|
data: parsedData || {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forwardimpact/libdoc",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Documentation build and serve tools for static site generation from Markdown",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"test": "node --test test/*.test.js"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@hono/node-server": "^1.19.
|
|
32
|
-
"hono": "^4.
|
|
33
|
-
"
|
|
34
|
-
"marked": "^14.1.4",
|
|
31
|
+
"@hono/node-server": "^1.19.11",
|
|
32
|
+
"hono": "^4.12.9",
|
|
33
|
+
"marked": "^17.0.5",
|
|
35
34
|
"marked-gfm-heading-id": "^4.1.3",
|
|
36
35
|
"marked-highlight": "^2.2.3",
|
|
37
36
|
"mustache": "^4.2.0",
|
|
38
|
-
"prettier": "^3.8.
|
|
37
|
+
"prettier": "^3.8.1",
|
|
38
|
+
"yaml": "^2.8.3"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=18.0.0"
|