codehike icon indicating copy to clipboard operation
codehike copied to clipboard

Convert paragraph content to markdown

Open gurkerl83 opened this issue 11 months ago • 2 comments

  • 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.

gurkerl83 avatar Mar 31 '25 09:03 gurkerl83

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

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 31 '25 09:03 vercel[bot]

Try codehike from this pull request in your project with:

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

github-actions[bot] avatar Mar 31 '25 09:03 github-actions[bot]