File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 99 * @typedef {import('mdast-util-mdx-jsx').MdxJsxExpressionAttribute } MdxJsxExpressionAttribute
1010 * @typedef {import('mdast-util-mdx-jsx').MdxJsxFlowElement } MdxJsxFlowElement
1111 * @typedef {import('mdast-util-mdx-jsx').MdxJsxTextElement } MdxJsxTextElement
12+ *
13+ * @typedef {import('mdast-util-mdx-jsx').ToMarkdownOptions } ToMarkdownOptions
1214 */
1315
1416import {
@@ -19,19 +21,21 @@ import {mdxJsxFromMarkdown, mdxJsxToMarkdown} from 'mdast-util-mdx-jsx'
1921import { mdxjsEsmFromMarkdown , mdxjsEsmToMarkdown } from 'mdast-util-mdxjs-esm'
2022
2123/**
22- *
2324 * @return {Array<FromMarkdownExtension> }
2425 */
2526export function mdxFromMarkdown ( ) {
2627 return [ mdxExpressionFromMarkdown , mdxJsxFromMarkdown ( ) , mdxjsEsmFromMarkdown ]
2728}
2829
29- /** @return {ToMarkdownExtension } */
30- export function mdxToMarkdown ( ) {
30+ /**
31+ * @param {ToMarkdownOptions } [options]
32+ * @return {ToMarkdownExtension }
33+ */
34+ export function mdxToMarkdown ( options ) {
3135 return {
3236 extensions : [
3337 mdxExpressionToMarkdown ,
34- mdxJsxToMarkdown ( ) ,
38+ mdxJsxToMarkdown ( options ) ,
3539 mdxjsEsmToMarkdown
3640 ]
3741 }
Original file line number Diff line number Diff line change @@ -228,14 +228,14 @@ There is no default export.
228228
229229### ` mdxFromMarkdown() `
230230
231- ### ` mdxToMarkdown() `
231+ ### ` mdxToMarkdown(options? ) `
232232
233233Support MDX (or MDX.js).
234234The exports are functions that can be called to respectively get an extension
235235for [ ` mdast-util-from-markdown ` ] [ from-markdown ] and
236236[ ` mdast-util-to-markdown ` ] [ to-markdown ] .
237237
238- There are no options.
238+ The options to ` mdxToMarkdown ` are [ passed to ` mdxJsxToMarkdown ` ] [ options ] .
239239
240240## Related
241241
@@ -323,3 +323,5 @@ abide by its terms.
323323[ mdxjs ] : https://github.com/micromark/micromark-extension-mdxjs
324324
325325[ remark-mdx ] : https://github.com/mdx-js/mdx/tree/next/packages/remark-mdx
326+
327+ [ options ] : https://github.com/syntax-tree/mdast-util-mdx-jsx#mdxjsxtomarkdownoptions
You can’t perform that action at this time.
0 commit comments