@ateeducacion/mind-elixir-export-mermaid 0.1.1 → 0.1.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 +2 -1
- package/dist/index.js +4 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -87,7 +87,8 @@ mindElixirToMermaid(data, {
|
|
|
87
87
|
|
|
88
88
|
The hierarchy, the order and the text of every node. Text is written with Mermaid's
|
|
89
89
|
entity codes (`#quot;`, `#lt;`, `#35;`, …), so a topic can contain quotes, brackets,
|
|
90
|
-
`#`, `*`, `_` or HTML-like text and still renders exactly as typed, never as markup
|
|
90
|
+
`#`, `%`, `*`, `_` or HTML-like text and still renders exactly as typed, never as markup
|
|
91
|
+
or as a Mermaid directive (`%%{init: …}%%`).
|
|
91
92
|
|
|
92
93
|
Mermaid's `mindmap` syntax has no equivalent for per-node colours and font styles (other
|
|
93
94
|
than bold and italic in markdown mode), branch sides, folded state, arrows, summaries,
|
package/dist/index.js
CHANGED
|
@@ -18,11 +18,13 @@ const CLASS_NAME = /^[A-Za-z_][\w-]*$/;
|
|
|
18
18
|
const ICON = /^[\w -]+$/;
|
|
19
19
|
/**
|
|
20
20
|
* Mermaid entity codes for the characters Mermaid would otherwise read as syntax, markup,
|
|
21
|
-
* entities or formatting (Pele formats `*` and `_` even outside markdown strings).
|
|
22
|
-
*
|
|
21
|
+
* entities or formatting (Pele formats `*` and `_` even outside markdown strings). Mermaid
|
|
22
|
+
* also strips `%%{...}%%` directives anywhere in the source before parsing, so `%` is encoded
|
|
23
|
+
* too. `#` comes first, so the codes added afterwards are not encoded again.
|
|
23
24
|
*/
|
|
24
25
|
const ENTITIES = [
|
|
25
26
|
[/#/g, "#35;"],
|
|
27
|
+
[/%/g, "#37;"],
|
|
26
28
|
[/"/g, "#quot;"],
|
|
27
29
|
[/</g, "#lt;"],
|
|
28
30
|
[/>/g, "#gt;"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ateeducacion/mind-elixir-export-mermaid",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Export Mind Elixir mind maps to Mermaid mindmap syntax, for lightweight vector output with Mermaid or Pele",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ernesto Serrano",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"test:package": "node scripts/test-package.mjs"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@types/node": "26.6.
|
|
58
|
-
"@vitest/coverage-v8": "5.0.
|
|
57
|
+
"@types/node": "26.6.5",
|
|
58
|
+
"@vitest/coverage-v8": "5.0.4",
|
|
59
59
|
"mind-elixir": "5.15.1",
|
|
60
60
|
"pele": "1.6.0",
|
|
61
|
-
"prettier": "3.9.
|
|
61
|
+
"prettier": "3.9.10",
|
|
62
62
|
"typescript": "7.0.2",
|
|
63
|
-
"vitest": "5.0.
|
|
63
|
+
"vitest": "5.0.4"
|
|
64
64
|
}
|
|
65
65
|
}
|