Skip to content

Formating a blockquote with text and code is messed up #109

@Relex12

Description

@Relex12

I am trying to format a file with a blockquote that looks like this:

> First line of my note.
>
> Second line.

And I want an empty line in my blockquote because the second line is actually a code block, so it looks more like this:

> [!NOTE]
> First line of my note.
>
> ```text
> some_code
> ```

If there is not empty line in my blockquote, I get a MD031 which I assume is how it's supposed to be.

Now, if my whole file looks like this (no markdownlint error):

# Awesome file

> [!NOTE]
> First line of my note.
>
> ```text
> some_code
> ```

Here is a paragraph.

> A marvelous quotation.

Second paragraph.

The first time I format this file, I get:

# Awesome file

> [!NOTE]
> First line of my note.
>
```text
> some_code
> ```
> 
Here is a paragraph.

A marvelous quotation.
> 
Second paragraph.

Second formatting:

# Awesome file

> [!NOTE]
> First line of my note.
>
```text
some_code
> ```
> Here is a paragraph.
> 

A marvelous quotation.
Second paragraph.

Third:

# Awesome file

> [!NOTE]
> First line of my note.
>
```text
some_code
\```

> Here is a paragraph.
>
>
A marvelous quotation.
Second paragraph.

And it goes on and on until the file looks like this, which seems to be a stable state:

# Awesome file

> [!NOTE]
> First line of my note.
>
```text
some_code
\```

Here is a paragraph.
A marvelous quotation.
Second paragraph.

Please note that I added the backslash \ before the ``` myself so that Github rendering is not messed up, this single character is not actually added by Markdown table prettifier.

Also note that the > [!NOTE] seems to have no effect.

And for general information if that helps:

  • Visual Studio Code version 1.117.0
  • Ubuntu 24.04.4 LTS on WSL along with WSL plugin in VS code
  • Markdown table prettifier version 4.0.0

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions