File tree 2 files changed +249
-50
lines changed 2 files changed +249
-50
lines changed Original file line number Diff line number Diff line change 48
48
* Do not use an extra space when closing self-closing elements: `<img/>`
49
49
* instead of `<img />`.
50
50
* @property {number | null | undefined } [printWidth=Infinity]
51
- * Specify the line length that the printer will wrap on.
52
- * This is not a hard maximum width: things will be printed longer and
53
- * shorter.
51
+ * Try and wrap syntax at this width.
54
52
*
55
- * Note: this option is only used for JSX tags currently, and might be moved
56
- * to `mdast-util-to-markdown` in the future.
53
+ * When set to a finite number (say, `80`), the formatter will print
54
+ * attributes on separate lines when a tag doesn’t fit on one line.
55
+ * The normal behavior is to print attributes with spaces between them
56
+ * instead of line endings.
57
57
*/
58
58
59
59
import { ccount } from 'ccount'
@@ -473,6 +473,10 @@ export function mdxJsxFromMarkdown() {
473
473
/**
474
474
* Create an extension for `mdast-util-to-markdown` to enable MDX JSX.
475
475
*
476
+ * This extension configures `mdast-util-to-markdown` with
477
+ * `options.fences: true` and `options.resourceLink: true` too, do not
478
+ * overwrite them!
479
+ *
476
480
* @param {ToMarkdownOptions | null | undefined } [options]
477
481
* Configuration.
478
482
* @returns {ToMarkdownExtension }
You can’t perform that action at this time.
0 commit comments