* Add support for MDX 2 comments
This adds support for MDX 2 comments (which are the same as other
comments inside JSX) in addition to MDX 1 comments (HTML-like
constructs).
Related to GH-10706.
Related to wooorm/xdm#61.
* Fix blank line before comment
* Add `esComment` to `printer-markdown`
* Add embedded test
* Remove embedded formatter
* Add support for es-comments as blocks & test prettier-ignore comments
* Add a test for mdx pragma
* Remove duplicate fixture
* Add changelog
* Add note clarifying support
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
* add a script that concatenates changelog_unreleased into a blog post draft
* syntax highlighting issues
* generate post draft
* Copy edit, remove error stacks
* Update 2020-00-00-2.0.0.md
* Update changelog source files
* edit entries, regenerate the post
* add lost file in versioned_docs
Co-authored-by: Jed Fox <git@twopointzero.us>
* Fix MDX html parsing errors
For MDX wrap JSX parsing in a fragment before sending it of to babel for
parsing and formatting. In MDX adjacent JSX tags are permitted in the
root.
An option sent to the babel parser omits printing the root fragment and
instead just prints its children.
Solves #6943
* an attempt to address JounQin's comments
* use <$>...</$> instead of <>...</>
* refactoring