writr 3.2.0 → 3.2.2
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/README.md +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -140,7 +140,7 @@ const markdown = `# Hello World ::-):\n\n This is a test.`;
|
|
|
140
140
|
const html = writr.renderSync(markdown); // <h1>Hello World 🙂</h1><p>This is a test.</p>
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
### '.renderReact(markdown: string, options?: RenderOptions, reactOptions?: HTMLReactParserOptions): Promise<React.JSX.Element
|
|
143
|
+
### '.renderReact(markdown: string, options?: RenderOptions, reactOptions?: HTMLReactParserOptions): Promise<React.JSX.Element />'
|
|
144
144
|
|
|
145
145
|
Rendering markdown to React. The options are based on RenderOptions and now HTMLReactParserOptions from `html-react-parser`.
|
|
146
146
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "writr",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Markdown Rendering Simplified",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/writr.js",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"clean": "rimraf ./dist ./coverage ./node_modules ./package-lock.json ./yarn.lock ./site/README.md ./site-output",
|
|
44
44
|
"build": "rimraf ./dist && tsc",
|
|
45
|
-
"site-build": "rimraf ./site/README.md ./site-output && npx docula build -s ./site -o ./site-output",
|
|
46
|
-
"site-serve": "rimraf ./site/README.md ./site-output && npx docula serve -s ./site -o ./site-output",
|
|
47
45
|
"test": "xo --fix && vitest run --coverage",
|
|
48
|
-
"prepare": "
|
|
46
|
+
"prepare": "npm run build",
|
|
47
|
+
"website:build": "rimraf ./site/README.md ./site-output && npx docula build -s ./site -o ./site-output",
|
|
48
|
+
"website:serve": "rimraf ./site/README.md ./site-output && npx docula serve -s ./site -o ./site-output"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"html-react-parser": "^5.1.
|
|
51
|
+
"html-react-parser": "^5.1.10",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"rehype-highlight": "^7.0.0",
|
|
54
54
|
"rehype-katex": "^7.0.0",
|
|
@@ -65,15 +65,15 @@
|
|
|
65
65
|
"unified": "^11.0.4"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@types/node": "^20.
|
|
69
|
-
"@types/react": "^18.2.
|
|
70
|
-
"@vitest/coverage-v8": "^1.
|
|
71
|
-
"docula": "^0.
|
|
68
|
+
"@types/node": "^20.12.2",
|
|
69
|
+
"@types/react": "^18.2.73",
|
|
70
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
71
|
+
"docula": "^0.5.2",
|
|
72
72
|
"rimraf": "^5.0.5",
|
|
73
|
-
"typescript": "^5.
|
|
74
|
-
"vitest": "^1.
|
|
75
|
-
"webpack": "^5.
|
|
76
|
-
"xo": "^0.
|
|
73
|
+
"typescript": "^5.4.3",
|
|
74
|
+
"vitest": "^1.4.0",
|
|
75
|
+
"webpack": "^5.91.0",
|
|
76
|
+
"xo": "^0.58.0"
|
|
77
77
|
},
|
|
78
78
|
"xo": {
|
|
79
79
|
"ignores": [
|