@thi.ng/hiccup-markdown 3.2.117 → 3.2.118
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/CHANGELOG.md +8 -1
- package/package.json +6 -6
- package/parse.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-21T11:16:50Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [3.2.118](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.118) (2025-01-21)
|
|
13
|
+
|
|
14
|
+
#### ⏱ Performance improvements
|
|
15
|
+
|
|
16
|
+
- update parser grammar ([18b3032](https://github.com/thi-ng/umbrella/commit/18b3032))
|
|
17
|
+
- update grammar rules to use more char selections
|
|
18
|
+
|
|
12
19
|
### [3.2.116](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.116) (2025-01-14)
|
|
13
20
|
|
|
14
21
|
#### ♻️ Refactoring
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-markdown",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.118",
|
|
4
4
|
"description": "Markdown parser & serializer from/to Hiccup format",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@thi.ng/defmulti": "^3.0.55",
|
|
47
47
|
"@thi.ng/emoji": "^1.0.1",
|
|
48
48
|
"@thi.ng/errors": "^2.5.22",
|
|
49
|
-
"@thi.ng/hiccup": "^5.2.
|
|
49
|
+
"@thi.ng/hiccup": "^5.2.24",
|
|
50
50
|
"@thi.ng/logger": "^3.0.27",
|
|
51
|
-
"@thi.ng/parse": "^2.
|
|
52
|
-
"@thi.ng/strings": "^3.9.
|
|
53
|
-
"@thi.ng/text-canvas": "^3.0.
|
|
51
|
+
"@thi.ng/parse": "^2.6.0",
|
|
52
|
+
"@thi.ng/strings": "^3.9.1",
|
|
53
|
+
"@thi.ng/text-canvas": "^3.0.52"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@microsoft/api-extractor": "^7.48.1",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
],
|
|
104
104
|
"year": 2018
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "56e7a1724e7b0cb5c41119f60320b6ff0e8a3c1c\n"
|
|
107
107
|
}
|
package/parse.js
CHANGED
|
@@ -13,12 +13,12 @@ const GRAMMAR = defGrammar(`
|
|
|
13
13
|
DNL1: <DNL>+ => discard ;
|
|
14
14
|
DNL2: <NL>{2,} ;
|
|
15
15
|
lbr: '\\\\'! <NL>! ;
|
|
16
|
-
esc: '\\\\'!
|
|
16
|
+
esc: '\\\\'! [_*\`~:\\<>(){}#.!|\\\\\\u002d\\u005b\\u005d] ;
|
|
17
17
|
cesc: '\\\\'! ('\`'| '\\\\') ;
|
|
18
18
|
cbesc: '\\\\'! '\`' ;
|
|
19
19
|
cuesc: '\\\\'! ':' ;
|
|
20
20
|
mesc: '\\\\'! '}' ;
|
|
21
|
-
idelim: ("![" |
|
|
21
|
+
idelim: ("![" | [[_\`<] | "**" | "~~" | " :" | <lbr>) ;
|
|
22
22
|
delim: (<idelim> | <DNL2>) ;
|
|
23
23
|
ebody: (<esc>|.) ;
|
|
24
24
|
cbody: (<cesc>|.) ;
|
|
@@ -40,7 +40,7 @@ linkref: '['! <linklabel> '['! <label> ;
|
|
|
40
40
|
linkdef: <LSTART> '['! <label> ':'! <WS1> <ldtarget> ;
|
|
41
41
|
ldtarget: <ebody>(?+<DNL1>) => join ;
|
|
42
42
|
linklabel: (<img> | <bold> | <italic> | <strike> | <code> | <emoji> | <kbd> | <sub> | <sup> | <linkbody>)* ']'! ;
|
|
43
|
-
linkdelim: ("![" |
|
|
43
|
+
linkdelim: ("![" | [\\u005d_\`\\u005b] | "**" | "~~") ;
|
|
44
44
|
linkbody: <ebody>(?-<linkdelim>!) => join ;
|
|
45
45
|
img: "!["! <label> '('! <target> ;
|
|
46
46
|
bold: "**"! (<wikiref> | <img> | <fnref> | <linkref> | <link> | <italic> | <strike> | <code> | <emoji> | <kbd> | <sub> | <sup> | <ibody>)* "**"! ;
|