flatmarkdown-ast2html 0.9.0 → 0.10.1

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 CHANGED
@@ -1,12 +1,12 @@
1
1
  # flatmarkdown-ast2html
2
2
 
3
- Renders the [Flat Markdown](https://github.com/petajournal/flatmarkdown) AST to HTML in a web page.
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/petajournal/flatmarkdown/tree/main/flatmarkdown-ast2html#readme).
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
 
@@ -15,7 +15,7 @@ The WebAssembly code is inside that file, so a page needs no second file.
15
15
  Load the file with a `<script>` tag.
16
16
 
17
17
  ```html
18
- <script src="https://unpkg.com/flatmarkdown-ast2html@0.9.0"></script>
18
+ <script src="https://unpkg.com/flatmarkdown-ast2html@0.10.0"></script>
19
19
  <script>
20
20
  const html = FmAst2Html.renderToHtml(
21
21
  '{"type":"paragraph","children":[{"type":"text","value":"Hello"}]}',
@@ -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/petajournal/flatmarkdown/tree/main/flatmarkdown-ast2html#readme).
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/{}' });