@@ -18,7 +18,7 @@ Extensions to parse and serialize JSX between mdast and markdown
1818* [ Use] ( #use )
1919* [ API] ( #api )
2020 * [ ` mdxJsxFromMarkdown() ` ] ( #mdxjsxfrommarkdown )
21- * [ ` mdxJsxToMarkdown() ` ] ( #mdxjsxtomarkdown )
21+ * [ ` mdxJsxToMarkdown(options? ) ` ] ( #mdxjsxtomarkdownoptions )
2222* [ Syntax tree] ( #syntax-tree )
2323 * [ Nodes] ( #nodes )
2424 * [ Mixin] ( #mixin )
@@ -220,7 +220,7 @@ When using [`micromark-extension-mdx-jsx`][micromark-extension-mdx-jsx]
220220with ` options.addResult ` , nodes will have a ` data.estree ` field set to an
221221[ ESTree] [ ] .
222222
223- ### ` mdxJsxToMarkdown() `
223+ ### ` mdxJsxToMarkdown(options? ) `
224224
225225Function that can be called to get an extension for
226226[ ` mdast-util-to-markdown ` ] [ mdast-util-to-markdown ] .
@@ -230,9 +230,13 @@ This extension configures `mdast-util-to-markdown` with
230230[ ` options.resourceLink: true ` ] [ mdast-util-to-markdown-resourcelink ] too, do not
231231overwrite them!
232232
233- Passing [ ` options.quote ` ] [ mdast-util-to-markdown-quote ] to
234- ` mdast-util-to-markdown ` is honored for
235- attributes.
233+ ##### ` options `
234+
235+ Configuration (optional).
236+
237+ ###### ` options.quote `
238+
239+ Quote to use around attribute values (` '"' ` or ` "'" ` , default: ` '"' ` ).
236240
237241## Syntax tree
238242
@@ -368,7 +372,10 @@ type MdxJsxPhrasingContent = MdxJsxTextElement | PhrasingContent
368372
369373This package is fully typed with [ TypeScript] [ ] .
370374It exports the ` MdxJsxAttributeValueExpression ` , ` MdxJsxAttribute ` ,
371- ` MdxJsxExpressionAttribute ` , ` MdxJsxFlowElement ` , and ` MdxJsxTextElement ` types.
375+ ` MdxJsxExpressionAttribute ` , ` MdxJsxFlowElement ` , and ` MdxJsxTextElement ` types
376+ that represents the supported nodes.
377+ It also exports ` ToMarkdownOptions ` , which represents the structure of the
378+ respective options.
372379
373380It also registers the node types with ` @types/mdast `
374381
@@ -493,8 +500,6 @@ abide by its terms.
493500
494501[ micromark-extension-mdx-jsx ] : https://github.com/micromark/micromark-extension-mdx-jsx
495502
496- [ mdast-util-to-markdown-quote ] : https://github.com/syntax-tree/mdast-util-to-markdown#optionsquote
497-
498503[ mdast-util-to-markdown-fences ] : https://github.com/syntax-tree/mdast-util-to-markdown#optionsfences
499504
500505[ mdast-util-to-markdown-resourcelink ] : https://github.com/syntax-tree/mdast-util-to-markdown#optionsresourcelink
0 commit comments