-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
context
When block attributes are formatted, an extra line is added.
expectation
I expect the following MyST code to be left as-is by mdformat, as it looks pretty well formatted to me:
{caption="`GROUPS` - Description."}
```mermaid
flowchart
(...)
```
bug
But instead, the code above gets re-formatted like this:
{caption="`GROUPS` - Description."}
```mermaid
flowchart
(...)
```
Notice the extra blank line introduced.
problem
I think this is a problem if I compare all canonical reference from the MyST-parser documentation.
Reproduce the bug
$ cat ./block-attributes.md
{caption="`GROUPS` - Description."}
```mermaid
flowchart
(...)
```
$ mdformat ./block-attributes.md
$ cat ./block-attributes.md
{caption="`GROUPS` - Description."}
```mermaid
flowchart
(...)
```
List your environment
$ mdformat --version
mdformat 0.7.16 (mdformat_myst: 0.1.5, mdformat_tables: 0.4.1, mdformat_frontmatter: 2.0.1)
dynobo
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working