@cobapen/markdown 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -9,6 +9,7 @@ import { cjk_break } from "./plugins/cjk-break.js";
9
9
  import { fence_custom } from "./plugins/code/fence-custom.js";
10
10
  import { highlighterForMarkdownIt } from "./plugins/code/highlight.js";
11
11
  import { mdmath } from "./plugins/math/mdmath.js";
12
+ import { mermaidPlugin } from "./plugins/mermaid.js";
12
13
  import { rewritelink } from "./plugins/rewritelink.js";
13
14
  await MathJaxEngine.loadExtensions();
14
15
  const defaultOptions = {
@@ -54,6 +55,7 @@ export class CMarkdown {
54
55
  })
55
56
  .use(advTable)
56
57
  .use(mdmath(this._mj))
58
+ .use(mermaidPlugin)
57
59
  .use(toc, {
58
60
  markderPattern: /^\[\[(toc|_toc_)\]\]/im,
59
61
  includeLevel: fmtTocLevel(this._config.tocLevel),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobapen/markdown",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "A markdown converter for cobapen website",
5
5
  "keywords": [
6
6
  "markdown"