Closed
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Problem
For MDX JSX and HTML syntax, the packages have formatting options.
For directive syntax, there are stylistic preferences too.
Current solutions
none
Proposed solutions
For MDX JSX (https://github.com/syntax-tree/mdast-util-mdx-jsx) and HTML (https://github.com/syntax-tree/hast-util-to-html) there are quote
and quoteSmart
options. In the HTML case also collapseEmptyAttributes
, preferUnquoted
.
I guess a preferShortcut
(for id
, class
-> #
, .
) can also be added.