openclaw/packages/markdown-core/package.json
Peter Steinberger e25c2543d1
fix(markdown): preserve inline code content across renderers (#137812)
* fix(markdown): preserve inline code content across renderers

Retain code-owned table edge whitespace through the shared IR slicer and
remove duplicate table clipping. Update all Markdown-it consumers to
15.0.1 for code-span, unclosed-label, and IPv6 URL normalization fixes.

Add shared-renderer regressions, bundled-browser proof, and a four-message
Telegram Gateway scenario. Application production delta: -26 lines.

Fixes #137728.

* fix(telegram): preserve native inline-code whitespace

Choose code-span padding from CommonMark-normalized space facts so all-space
entities stay exact and CR/LF edges retain their normalized content. Keep
UTF-16 entity offsets and the existing delimiter and fence owners unchanged.

Preserve the existing text/caption regressions and cover normalized line
breaks plus tab and non-breaking-space controls.
2026-09-03 21:39:26 -07:00

67 lines
1.8 KiB
JSON

{
"name": "@openclaw/markdown-core",
"version": "0.0.0-private",
"private": true,
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
},
"./code-spans": {
"types": "./dist/code-spans.d.mts",
"import": "./dist/code-spans.mjs",
"default": "./dist/code-spans.mjs"
},
"./fences": {
"types": "./dist/fences.d.mts",
"import": "./dist/fences.mjs",
"default": "./dist/fences.mjs"
},
"./frontmatter": {
"types": "./dist/frontmatter.d.mts",
"import": "./dist/frontmatter.mjs",
"default": "./dist/frontmatter.mjs"
},
"./ir": {
"types": "./dist/ir.d.mts",
"import": "./dist/ir.mjs",
"default": "./dist/ir.mjs"
},
"./render": {
"types": "./dist/render.d.mts",
"import": "./dist/render.mjs",
"default": "./dist/render.mjs"
},
"./render-aware-chunking": {
"types": "./dist/render-aware-chunking.d.mts",
"import": "./dist/render-aware-chunking.mjs",
"default": "./dist/render-aware-chunking.mjs"
},
"./tables": {
"types": "./dist/tables.d.mts",
"import": "./dist/tables.mjs",
"default": "./dist/tables.mjs"
},
"./types": {
"types": "./dist/types.d.mts",
"import": "./dist/types.mjs",
"default": "./dist/types.mjs"
}
},
"dependencies": {
"@openclaw/normalization-core": "workspace:*",
"mdast-util-from-markdown": "2.0.3",
"mdast-util-gfm-table": "2.0.0",
"markdown-it": "15.0.1",
"markdown-it-cjk-friendly": "3.0.0",
"micromark-extension-gfm-table": "2.1.1",
"yaml": "2.9.0"
}
}