Skip to content
7 changes: 7 additions & 0 deletions .sampo/changesets/cunning-thunderbearer-vipunen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
cargo/satteri-ast: patch
cargo/satteri-napi: patch
npm/satteri: patch
---

Fixed `rawHtml: true` losing code-fence `data.lang` and `data.meta` in `markdownToHast` and MDX compilation, so HAST plugins can read fence options.
6 changes: 6 additions & 0 deletions .sampo/changesets/raw-html-mdx-component-overrides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
cargo/satteri-ast: patch
npm/satteri: patch
---

Fixed `export const components` being ignored in MDX when `rawHtml` and `optimizeStatic` are both enabled.
6 changes: 6 additions & 0 deletions .sampo/changesets/raw-html-positions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
cargo/satteri-ast: patch
npm/satteri: patch
---

Fixed `rawHtml` dropping the original source and root span. Markdown-derived nodes and self-contained raw blocks now retain their positions when their source association is unambiguous.
2 changes: 1 addition & 1 deletion crates/satteri-ast/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ pub struct ConvertOptions {
/// Reparse raw HTML embedded in the converted tree into real HAST nodes
/// (see [`raw_to_hast_arena`](crate::hast::from_html::raw_to_hast_arena)).
/// Applied as the final conversion step so every pipeline that converts
/// MDAST to HAST gets it. Positions are not preserved through the reparse.
/// MDAST to HAST gets it. Unambiguously associated nodes retain their positions.
/// Default: `false`.
#[cfg(feature = "from-html")]
pub raw_html: bool,
Expand Down
Loading
Loading