Skip to content

Converting / Escaping Markdown into MDX #123

Discussion options

You must be logged in to vote

I may have cracked the code:

import {fromMarkdown} from 'mdast-util-from-markdown';
import {toMarkdown} from 'mdast-util-to-markdown';
import {mdxExpressionToMarkdown} from 'mdast-util-mdx-expression'

const markdownContent = `
# Hello {not MDX}

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [color?](./package-a.colorpicker.color.md) |  | string | _(Optional)_ |
|  [ee](./package-a.colorpicker.ee.md) |  | [IEE](./package-a.iee.md) |  |
|  [id](./package-a.colorpicker.id.md) | <code>readonly</code> | string |  |
|  [onColorChange?](./package-a.colorpicker.oncolorchange.md) |  | (color: string) =&gt; void | _(Optional)_ |
|  [onColorChangeWithId…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@remcohaszing
Comment options

@wooorm
Comment options

Answer selected by wooorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants