Skip to content

Conversation

gurkerl83
Copy link

  • Introduce isMarkdownEnabled helper function to detect whether an MDX element sets markdownEnabled (either via shorthand or boolean expression).
  • Convert paragraph content to Markdown if markdownEnabled is set, accumulating the result in a new node.markdown field.
  • Use toMarkdown from mdast-util-to-markdown to transform AST nodes to Markdown.

- Introduce `isMarkdownEnabled` helper function to detect whether an MDX element sets `markdownEnabled` (either via shorthand or boolean expression).
- Convert paragraph content to Markdown if `markdownEnabled` is set, accumulating the result in a new `node.markdown` field.
- Use `toMarkdown` from `mdast-util-to-markdown` to transform AST nodes to Markdown.
Copy link

vercel bot commented Mar 31, 2025

@gurkerl83 is attempting to deploy a commit to the codehike Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

github-actions bot commented Mar 31, 2025

Try codehike from this pull request in your project with:

npm i https://pkg.pr.new/codehike@506

@github-actions github-actions bot added the changeset PR including changesets label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changeset PR including changesets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants