Skip to content

Commit e538e61

Browse files
Version Packages
1 parent 3643787 commit e538e61

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

.changeset/common-doodles-dress.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/html-always-parsed.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/html-node-rawtext.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# markdown-to-jsx
22

3+
## 9.4.1
4+
5+
### Patch Changes
6+
7+
- 7ee8a22: Ensure `renderRule` always executes before any other rendering code across all renderers. The `renderRule` function now has full control over node rendering, including normally-skipped nodes like `ref`, `footnote`, and `frontmatter`. Additionally, `renderChildren` in the markdown renderer now invokes `renderRule` for recursively rendered child nodes, ensuring consistent behavior when customizing rendering logic.
8+
- 7ee8a22: HTML blocks are now always fully parsed into the AST `children` property, even when marked as `verbatim`. The `verbatim` flag now acts as a rendering hint rather than a parsing control. Default renderers still use `rawText` for verbatim blocks (maintaining CommonMark compliance), but `renderRule` implementations can now access the fully parsed AST in `children` for all HTML blocks. The `noInnerParse` property has been replaced with `verbatim` for clarity.
9+
- 7ee8a22: Add `HTMLNode.rawText` field for consistency with `rawAttrs`. The `rawText` field contains the raw text content for verbatim HTML blocks, while `children` contains the parsed AST. The `text` property is now deprecated and will be removed in a future major version. Both fields are set to the same value for backward compatibility.
10+
311
## 9.4.0
412

513
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS, Vue, Markdown, and HTML output available with full customization.",
44
"homepage": "https://markdown-to-jsx.quantizor.dev",
55
"license": "MIT",
6-
"version": "9.4.0",
6+
"version": "9.4.1",
77
"publishConfig": {
88
"access": "public",
99
"mangle": {

0 commit comments

Comments
 (0)