@thi.ng/hiccup-markdown 3.2.162 → 3.2.167
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/package.json +104 -104
- package/CHANGELOG.md +0 -184
package/package.json
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
2
|
+
"name": "@thi.ng/hiccup-markdown",
|
|
3
|
+
"version": "3.2.167",
|
|
4
|
+
"description": "Markdown parser & serializer from/to Hiccup format",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/hiccup-markdown",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.6",
|
|
43
|
+
"@thi.ng/arrays": "^2.13.15",
|
|
44
|
+
"@thi.ng/checks": "^3.7.22",
|
|
45
|
+
"@thi.ng/defmulti": "^3.0.82",
|
|
46
|
+
"@thi.ng/emoji": "^1.0.25",
|
|
47
|
+
"@thi.ng/errors": "^2.5.46",
|
|
48
|
+
"@thi.ng/hiccup": "^5.3.28",
|
|
49
|
+
"@thi.ng/logger": "^3.2.5",
|
|
50
|
+
"@thi.ng/parse": "^2.6.34",
|
|
51
|
+
"@thi.ng/strings": "^3.9.26",
|
|
52
|
+
"@thi.ng/text-canvas": "^3.0.96"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"esbuild": "^0.25.11",
|
|
56
|
+
"typedoc": "^0.28.14",
|
|
57
|
+
"typescript": "^5.9.3"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"ast",
|
|
61
|
+
"conversion",
|
|
62
|
+
"dom",
|
|
63
|
+
"export",
|
|
64
|
+
"fileformat",
|
|
65
|
+
"hiccup",
|
|
66
|
+
"markdown",
|
|
67
|
+
"parser",
|
|
68
|
+
"transducer",
|
|
69
|
+
"tree",
|
|
70
|
+
"typescript"
|
|
71
|
+
],
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"access": "public"
|
|
74
|
+
},
|
|
75
|
+
"engines": {
|
|
76
|
+
"node": ">=18"
|
|
77
|
+
},
|
|
78
|
+
"files": [
|
|
79
|
+
"./*.js",
|
|
80
|
+
"./*.d.ts"
|
|
81
|
+
],
|
|
82
|
+
"exports": {
|
|
83
|
+
".": {
|
|
84
|
+
"default": "./index.js"
|
|
85
|
+
},
|
|
86
|
+
"./api": {
|
|
87
|
+
"default": "./api.js"
|
|
88
|
+
},
|
|
89
|
+
"./parse": {
|
|
90
|
+
"default": "./parse.js"
|
|
91
|
+
},
|
|
92
|
+
"./serialize": {
|
|
93
|
+
"default": "./serialize.js"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"thi.ng": {
|
|
97
|
+
"alias": "md",
|
|
98
|
+
"parent": "@thi.ng/hiccup",
|
|
99
|
+
"related": [
|
|
100
|
+
"markdown-table"
|
|
101
|
+
],
|
|
102
|
+
"year": 2018
|
|
103
|
+
},
|
|
104
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
105
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [3.2.118](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.118) (2025-01-21)
|
|
15
|
-
|
|
16
|
-
#### ⏱ Performance improvements
|
|
17
|
-
|
|
18
|
-
- update parser grammar ([18b3032](https://github.com/thi-ng/umbrella/commit/18b3032))
|
|
19
|
-
- update grammar rules to use more char selections
|
|
20
|
-
|
|
21
|
-
### [3.2.116](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.116) (2025-01-14)
|
|
22
|
-
|
|
23
|
-
#### ♻️ Refactoring
|
|
24
|
-
|
|
25
|
-
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
|
|
26
|
-
|
|
27
|
-
### [3.2.88](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.88) (2024-06-21)
|
|
28
|
-
|
|
29
|
-
#### ♻️ Refactoring
|
|
30
|
-
|
|
31
|
-
- rename various rest args to be more semantically meaningful ([8088a56](https://github.com/thi-ng/umbrella/commit/8088a56))
|
|
32
|
-
- simplify/split-up serialize() internals ([5ed9b11](https://github.com/thi-ng/umbrella/commit/5ed9b11))
|
|
33
|
-
|
|
34
|
-
### [3.2.84](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.84) (2024-04-20)
|
|
35
|
-
|
|
36
|
-
#### ♻️ Refactoring
|
|
37
|
-
|
|
38
|
-
- update type usage ([1a71e1c](https://github.com/thi-ng/umbrella/commit/1a71e1c))
|
|
39
|
-
|
|
40
|
-
### [3.2.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.42) (2023-11-09)
|
|
41
|
-
|
|
42
|
-
#### ♻️ Refactoring
|
|
43
|
-
|
|
44
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
45
|
-
|
|
46
|
-
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.2.0) (2023-03-07)
|
|
47
|
-
|
|
48
|
-
#### 🚀 Features
|
|
49
|
-
|
|
50
|
-
- update parse grammar ([e0be40a](https://github.com/thi-ng/umbrella/commit/e0be40a))
|
|
51
|
-
- char escapes now usable in almost all situs
|
|
52
|
-
(excl. metadata for code/custom blocks)
|
|
53
|
-
- add support for these HTML tags:
|
|
54
|
-
- comments `<!-- ... -->`
|
|
55
|
-
- `<sub>` / `<sup>`
|
|
56
|
-
- add tests
|
|
57
|
-
- update parse grammar & handlers ([7bd4edb](https://github.com/thi-ng/umbrella/commit/7bd4edb))
|
|
58
|
-
- update TransformCtx, add .column & .align fields
|
|
59
|
-
- update table row/cell handlers
|
|
60
|
-
- update olitem handler (index now a string)
|
|
61
|
-
- this is to support alphabetical ordered lists
|
|
62
|
-
- add `<sub>`/`<sup>` handlers
|
|
63
|
-
- update tests
|
|
64
|
-
- update docs
|
|
65
|
-
- update char escapes & inline format nesting rules ([2fde69b](https://github.com/thi-ng/umbrella/commit/2fde69b))
|
|
66
|
-
- allow nested kbd/sub/sup elements
|
|
67
|
-
- update char escape rules for inline code, codeblocks, custom blocks & meta blocks
|
|
68
|
-
- update __trimBody() helper to remove isolate trailing WS
|
|
69
|
-
- add/update tests
|
|
70
|
-
|
|
71
|
-
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.1.0) (2023-03-05)
|
|
72
|
-
|
|
73
|
-
#### 🚀 Features
|
|
74
|
-
|
|
75
|
-
- add anchor ID syntax support for headings ([86ce79e](https://github.com/thi-ng/umbrella/commit/86ce79e))
|
|
76
|
-
- update parse grammar & hd parser
|
|
77
|
-
- support for `{#id}` suffixes for defining heading anchor IDs
|
|
78
|
-
- only auto-generate anchor IDs if not explicitly specified
|
|
79
|
-
- update tests
|
|
80
|
-
|
|
81
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@3.0.0) (2023-02-27)
|
|
82
|
-
|
|
83
|
-
#### 🛑 Breaking changes
|
|
84
|
-
|
|
85
|
-
- replace parser ([e425e87](https://github.com/thi-ng/umbrella/commit/e425e87))
|
|
86
|
-
- BREAKING CHANGE: replace parser implementation
|
|
87
|
-
- switch to new parser (non-transducer based):
|
|
88
|
-
- [dcb7b193f](https://github.com/thi-ng/umbrella/commit/dcb7b193f)
|
|
89
|
-
- [5d030ad9c](https://github.com/thi-ng/umbrella/commit/5d030ad9c)
|
|
90
|
-
- [656b90be3](https://github.com/thi-ng/umbrella/commit/656b90be3)
|
|
91
|
-
- [8b215c690](https://github.com/thi-ng/umbrella/commit/8b215c690)
|
|
92
|
-
- add/update parser types/interfaces
|
|
93
|
-
- add/update tests
|
|
94
|
-
- update deps
|
|
95
|
-
|
|
96
|
-
#### 🚀 Features
|
|
97
|
-
|
|
98
|
-
- add new parser (incomplete WIP) ([dcb7b19](https://github.com/thi-ng/umbrella/commit/dcb7b19))
|
|
99
|
-
- update/extend new parser ([5d030ad](https://github.com/thi-ng/umbrella/commit/5d030ad))
|
|
100
|
-
- update blockquote handling
|
|
101
|
-
- add emoji support (& dependency)
|
|
102
|
-
- update/improve metablock format/handling
|
|
103
|
-
- add meta type/syntax identifier
|
|
104
|
-
- TODO meta data parsing
|
|
105
|
-
- update TagTransforms to accept meta data
|
|
106
|
-
- update horizontal rule parser (keep track of length)
|
|
107
|
-
- update/extend new parser ([656b90b](https://github.com/thi-ng/umbrella/commit/656b90b))
|
|
108
|
-
- add support for all outstanding elements:
|
|
109
|
-
- code blocks
|
|
110
|
-
- footnotes
|
|
111
|
-
- link refs
|
|
112
|
-
- tables
|
|
113
|
-
- update metablock handling (add tag handler to tx raw string)
|
|
114
|
-
- update all tag handlers to accept parse ctx as 1st arg
|
|
115
|
-
- allow all tag handlers to return nothing to exclude elem in result
|
|
116
|
-
- collect footnotes, link refs & headings separately in parse ctx
|
|
117
|
-
- update parser, add img & logger support ([8b215c6](https://github.com/thi-ng/umbrella/commit/8b215c6))
|
|
118
|
-
- add logger support for tracing parse scopes
|
|
119
|
-
- trim codeblock body
|
|
120
|
-
- fix footnote handling/appending
|
|
121
|
-
- fix hd tag handler if level>6
|
|
122
|
-
- fix table column alignment parsing
|
|
123
|
-
- update pkg deps
|
|
124
|
-
- update/extend parser ([27c4084](https://github.com/thi-ng/umbrella/commit/27c4084))
|
|
125
|
-
- update parser grammar
|
|
126
|
-
- add support for nested inline formats in:
|
|
127
|
-
- headings
|
|
128
|
-
- paragraphs
|
|
129
|
-
- blockquotes
|
|
130
|
-
- link labels
|
|
131
|
-
- lists
|
|
132
|
-
- tables
|
|
133
|
-
- add support for escaping format chars
|
|
134
|
-
- add support for explicit linebreaks in paragraphs & blockquotes
|
|
135
|
-
- add `<kbd>` support
|
|
136
|
-
- add parse option to auto-escape chars as HTML entities
|
|
137
|
-
- update TagTransforms
|
|
138
|
-
- extract DEFAULT_TAG_TRANSFORMS
|
|
139
|
-
- update parse() signature, add parseRaw()
|
|
140
|
-
- refactor/improve reuse for various internal parse helpers
|
|
141
|
-
- update tests
|
|
142
|
-
- add escaped char support ([6671b73](https://github.com/thi-ng/umbrella/commit/6671b73))
|
|
143
|
-
- update parser ([33aea4e](https://github.com/thi-ng/umbrella/commit/33aea4e))
|
|
144
|
-
- add wikiref link parser/handler
|
|
145
|
-
- fix codeblock & customblock handlers
|
|
146
|
-
- add slugified ID attrib for headings
|
|
147
|
-
- expose withMeta() & extractBody() utils for custom handlers
|
|
148
|
-
- update img & link parsers ([8750fbd](https://github.com/thi-ng/umbrella/commit/8750fbd))
|
|
149
|
-
- add support for optional title attrib for links & images
|
|
150
|
-
(eg. `[label](url "title")`)
|
|
151
|
-
- fix linkref handling
|
|
152
|
-
- add/update tests
|
|
153
|
-
- update/extend parser (blockquotes, formats) ([13cb309](https://github.com/thi-ng/umbrella/commit/13cb309))
|
|
154
|
-
- update grammar & handler to support nested blockquotes
|
|
155
|
-
- update inline formats to allow links & images in body
|
|
156
|
-
- update tests
|
|
157
|
-
- update parser & tag transforms ([a6c0b36](https://github.com/thi-ng/umbrella/commit/a6c0b36))
|
|
158
|
-
- auto-compute heading ID in parser and provide as new arg to tag transform
|
|
159
|
-
- add row index as new arg for tableRow transform
|
|
160
|
-
- add tableHead tag transform (for 1st row cells)
|
|
161
|
-
- update lazy value handling in linkRef tag transform
|
|
162
|
-
- update tests
|
|
163
|
-
- update pkg deps
|
|
164
|
-
- add metadata support for <hr> tags ([d5c84c9](https://github.com/thi-ng/umbrella/commit/d5c84c9))
|
|
165
|
-
- update parser types/fns, add docs ([0208a53](https://github.com/thi-ng/umbrella/commit/0208a53))
|
|
166
|
-
- add ParseResult
|
|
167
|
-
- rename MDParseContext => TransformCtx
|
|
168
|
-
- rename walk => transformScope
|
|
169
|
-
- update parse() args
|
|
170
|
-
- add docstrings
|
|
171
|
-
- update tests
|
|
172
|
-
|
|
173
|
-
#### 🩹 Bug fixes
|
|
174
|
-
|
|
175
|
-
- add/update tests ([f444506](https://github.com/thi-ng/umbrella/commit/f444506))
|
|
176
|
-
- update emoji parse grammar ([b7c310f](https://github.com/thi-ng/umbrella/commit/b7c310f))
|
|
177
|
-
|
|
178
|
-
#### ♻️ Refactoring
|
|
179
|
-
|
|
180
|
-
- update serializer ([a489c0e](https://github.com/thi-ng/umbrella/commit/a489c0e))
|
|
181
|
-
- add support for nested blockquotes
|
|
182
|
-
- add support for link labels
|
|
183
|
-
- rename internal fns
|
|
184
|
-
- update tests
|