flatmarkdown-ast2html 0.10.0 → 0.11.0
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 +3 -3
- package/dist/index.global.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# flatmarkdown-ast2html
|
|
2
2
|
|
|
3
|
-
Renders the [Flat Markdown](https://github.com/
|
|
3
|
+
Renders the [Flat Markdown](https://github.com/sosuisen/flatmarkdown) AST to HTML in a web page.
|
|
4
4
|
|
|
5
5
|
This npm package is the Rust crate [flatmarkdown-ast2html](https://crates.io/crates/flatmarkdown-ast2html), built as WebAssembly.
|
|
6
6
|
So the package and the crate give the same HTML.
|
|
7
7
|
The version of the package is the version of the crate.
|
|
8
8
|
|
|
9
|
-
The HTML is described in the [README of the crate](https://github.com/
|
|
9
|
+
The HTML is described in the [README of the crate](https://github.com/sosuisen/flatmarkdown/tree/main/flatmarkdown-ast2html#readme).
|
|
10
10
|
|
|
11
11
|
## Use
|
|
12
12
|
|
|
@@ -38,7 +38,7 @@ The function returns the HTML as a string. It does not return a promise.
|
|
|
38
38
|
- `wikilinkFragmentPattern`: the pattern of the fragment of a wikilink. The default is empty.
|
|
39
39
|
|
|
40
40
|
They are the settings of `HtmlOptions` of the crate, and give the same HTML.
|
|
41
|
-
See "Where links lead" in the [README of the crate](https://github.com/
|
|
41
|
+
See "Where links lead" in the [README of the crate](https://github.com/sosuisen/flatmarkdown/tree/main/flatmarkdown-ast2html#readme).
|
|
42
42
|
|
|
43
43
|
```js
|
|
44
44
|
FmAst2Html.renderToHtml(ast, { wikilinkHref: '/pages/{}', hashtagHref: '/pages/tags/{}' });
|
package/dist/index.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! flatmarkdown-ast2html 0.
|
|
1
|
+
/*! flatmarkdown-ast2html 0.11.0 | MIT License | https://github.com/sosuisen/flatmarkdown */
|
|
2
2
|
var FmAst2Html = (function () {
|
|
3
3
|
var document;
|
|
4
4
|
let wasm_bindgen = (function(exports) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatmarkdown-ast2html",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Renders the Flat Markdown AST to HTML. The wasm build of the Rust crate flatmarkdown-ast2html.",
|
|
5
5
|
"unpkg": "./dist/index.global.js",
|
|
6
6
|
"jsdelivr": "./dist/index.global.js",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
],
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/
|
|
12
|
+
"url": "git+https://github.com/sosuisen/flatmarkdown.git",
|
|
13
13
|
"directory": "flatmarkdown-ast2html-wasm"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/
|
|
16
|
+
"url": "https://github.com/sosuisen/flatmarkdown/issues"
|
|
17
17
|
},
|
|
18
|
-
"homepage": "https://github.com/
|
|
18
|
+
"homepage": "https://github.com/sosuisen/flatmarkdown/tree/main/flatmarkdown-ast2html-wasm#readme",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "node build.mjs",
|
|
21
21
|
"test": "node --test",
|