Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quote, quoteSmart, etc formatting options #12

Closed
4 tasks done
wooorm opened this issue Jan 21, 2025 · 0 comments
Closed
4 tasks done

Add quote, quoteSmart, etc formatting options #12

wooorm opened this issue Jan 21, 2025 · 0 comments
Labels
💪 phase/solved Post is done

Comments

@wooorm
Copy link
Member

wooorm commented Jan 21, 2025

Initial checklist

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.

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Jan 21, 2025
wooorm added a commit that referenced this issue Jan 22, 2025
Related-to: GH-12.
wooorm added a commit that referenced this issue Jan 22, 2025
wooorm added a commit that referenced this issue Jan 22, 2025
wooorm added a commit that referenced this issue Jan 22, 2025
@wooorm wooorm closed this as completed in f8c7348 Jan 22, 2025
@wooorm wooorm added the 💪 phase/solved Post is done label Jan 22, 2025
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 phase/solved Post is done
Development

No branches or pull requests

1 participant