pantsdown 2.2.3 → 2.2.4
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/.oxfmtrc.json +17 -0
- package/CLAUDE.md +1 -0
- package/bun.lock +1500 -0
- package/eslint.config.ts +46 -0
- package/package.json +47 -43
- package/src/css/styles.css +581 -581
- package/src/lexer.ts +419 -419
- package/src/pantsdown.ts +38 -38
- package/src/parser.ts +223 -239
- package/src/renderer.ts +243 -245
- package/src/rules/block.ts +99 -101
- package/src/rules/inline.ts +92 -92
- package/src/rules/utils.ts +14 -14
- package/src/tokenizer.ts +911 -919
- package/src/types.ts +244 -244
- package/src/utils.ts +274 -236
- package/tsconfig.json +2 -1
- package/.prettierignore +0 -1
- package/src/css/styles.css.d.ts +0 -4
package/.oxfmtrc.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
|
3
|
+
"ignorePatterns": [".github"],
|
|
4
|
+
"printWidth": 100,
|
|
5
|
+
"tabWidth": 3,
|
|
6
|
+
"sortImports": {
|
|
7
|
+
"newlinesBetween": false
|
|
8
|
+
},
|
|
9
|
+
"overrides": [
|
|
10
|
+
{
|
|
11
|
+
"files": ["*.json", "*.md"],
|
|
12
|
+
"options": {
|
|
13
|
+
"tabWidth": 2
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
package/CLAUDE.md
CHANGED
|
@@ -64,6 +64,7 @@ All token types are defined in `src/types.ts`. The `Token` union type covers all
|
|
|
64
64
|
## Output
|
|
65
65
|
|
|
66
66
|
`pantsdown.parse(markdown)` returns `{ html, javascript }`:
|
|
67
|
+
|
|
67
68
|
- `html`: The rendered HTML string
|
|
68
69
|
- `javascript`: A script for interactive features (task list checkboxes, copy buttons)
|
|
69
70
|
|