Skip to content

Add support for serializing custom values#6

Merged
remcohaszing merged 2 commits intomainfrom
custom-serializer
Oct 24, 2025
Merged

Add support for serializing custom values#6
remcohaszing merged 2 commits intomainfrom
custom-serializer

Conversation

@remcohaszing
Copy link
Copy Markdown
Owner

@remcohaszing remcohaszing commented Oct 24, 2025

This change introduces a new option replacer. This is a function which accepts the value to serialize, and may return an ESTree expression to represent the value. If nothing is returned, the value is further processed by valueToEstree.

This change introduces a new function `customSerialize`. This function
accepts the value to serialize, and may return an ESTree expression to
represent the value. If nothing is returned, the value is further
processed by `valueToEstree`.
This matches the name of the very similar replacer function in
`JSON.stringify()`.
@remcohaszing remcohaszing merged commit af5a2bd into main Oct 24, 2025
10 checks passed
@remcohaszing remcohaszing deleted the custom-serializer branch October 24, 2025 11:38
rafegoldberg pushed a commit to readmeio/markdown that referenced this pull request Oct 30, 2025
## Version 11.5.0
### ✨ New & Improved

* add MCPIntro component ([#1219](#1219)) ([352fb99](352fb99))
* add support for converting recipe ([#1221](#1221)) ([16db568](16db568))

### 🛠 Fixes & Updates

* **deps:** bump @mdx-js/mdx from 3.1.0 to 3.1.1 ([#1186](#1186)) ([36ba199](36ba199)), closes [mdx-js/mdx#2593](mdx-js/mdx#2593) [mdx-js/mdx#2595](mdx-js/mdx#2595) [mdx-js/mdx#2629](mdx-js/mdx#2629) [mdx-js/mdx#2622](mdx-js/mdx#2622) [mdx-js/mdx#2605](mdx-js/mdx#2605) [mdx-js/mdx#2604](mdx-js/mdx#2604)
* **deps:** bump estree-util-value-to-estree from 3.4.0 to 3.5.0 ([#1214](#1214)) ([c953372](c953372)), closes [remcohaszing/estree-util-value-to-estree#6](remcohaszing/estree-util-value-to-estree#6) [#6](#6)
* **deps:** bump postcss from 8.5.3 to 8.5.6 ([#1128](#1128)) ([2731484](2731484)), closes [#2052](https://github.com/readmeio/markdown/issues/2052)
* **deps:** bump remark-mdx from 3.1.0 to 3.1.1 ([#1185](#1185)) ([bc7f79a](bc7f79a)), closes [mdx-js/mdx#2593](mdx-js/mdx#2593) [mdx-js/mdx#2595](mdx-js/mdx#2595) [mdx-js/mdx#2629](mdx-js/mdx#2629) [mdx-js/mdx#2622](mdx-js/mdx#2622) [mdx-js/mdx#2605](mdx-js/mdx#2605) [mdx-js/mdx#2604](mdx-js/mdx#2604)
* **deps:** dependabot updates ([#1217](#1217)) ([b8b0b78](b8b0b78))

<!--SKIP CI-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant