Skip to content

Paragraphs that begin with a numeric number are formatted incorrectly #3800

@Tyxiang

Description

@Tyxiang

Summary

Paragraphs that begin with a numeric number are formatted incorrectly.

Steps To Reproduce:

Format the markdown text below:

- item1
- item2

2.1. paragraph

Expected result

- item1
- item2

2.1. paragraph

Actual result

- item1
- item2

  2.1. paragraph

ps: There are more spaces in front 2.1. paragraph. This caused it to become a child of ul.

Additional information

There's no such thing after ol:

1. item1
1. item2

2.1. paragraph

VS Code Version:

Version: 1.100.2 (user setup)
Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e
Date: 2025-05-14T21:47:40.416Z
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26200

Prettier Extension Version:

Version 11.0.0

Prettier Log Output

I have Enable Debug Logs but there is nothing in output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions