-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:markdownIssues affecting MarkdownIssues affecting Markdown
Description
Prettier 1.16.4
{
"parser": "markdown",
"tabWidth": 4,
"useTabs": true,
/**
* `markdownHeadings` values:
* - `atx` (default)
* - `setext`
* - `setext-h1` (only `<h1>` uses the setext syntax)
*/
"markdownHeadings": "setext",
}Input:
Setext Heading 1
================
Setext Heading 2
----------------
## ATX Heading 2
Output:
# Setext Heading 1
## Setext Heading 2
## ATX Heading 2
Expected behavior:
Setext headers are used:
Setext Heading 1
================
Setext Heading 2
----------------
ATX Heading 2
-------------
Preferably, I’d also like if there was an option to have only Heading 1 use the setext syntax, and the rest use the ATX syntax.
brianary, ciwchris, yansheng836, dsernst, barrykeenan and 24 more
Metadata
Metadata
Assignees
Labels
help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:markdownIssues affecting MarkdownIssues affecting Markdown