Skip to content

[Bug] Right-aligned numbers in source after prettification break unbordered table rendering in VSC's previewer. #85

@RokeJulianLockhart

Description

@RokeJulianLockhart

Examples And Explanation

Overflow     | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | Base-10 Value
------------:|----:|---:|---:|---:|--:|--:|--:|--:|-------------:
Inapplicable |   0 |  0 |  0 |  1 | 0 | 1 | 0 | 0 |            20
0            |   0 |  0 |  1 |  0 | 1 | 0 | 0 | 0 [^2] |            40

This renders as expected:

Image

When prettified, its numeric values are shited to the right:

    Overflow | 128 | 64 | 32 | 16 | 8 | 4 | 2 |      1 | Base-10 Value
------------:|----:|---:|---:|---:|--:|--:|--:|-------:|-------------:
Inapplicable |   0 |  0 |  0 |  1 | 0 | 1 | 0 |      0 |            20
           0 |   0 |  0 |  1 |  0 | 1 | 0 | 0 | 0 [^2] |            40

Considering that tables aren't part of CommonMark, I don't know whether this is valid. However, it breaks the rendering of the table:

Image

I apologise for the reproduction examples being so non-minimal. I'll attempt to reduce them when I've time.

My Environment

  1. The Extension

    Version: 3.7.0
    VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=darkriszty.markdown-table-prettify
  2. VSC 1

    Name         : code
    Version      : 1.103.2
    Release      : 1755709837.el8
    Architecture : x86_64
    Install Date : Mon 25 Aug 2025 19:31:22 BST
    Size         : 453507130
    Signature    : RSA/SHA256, Wed 20 Aug 2025 18:15:13 BST, Key ID eb3e94adbe1229cf
    Source RPM   : code-1.103.2-1755709837.el8.src.rpm
    Build Date   : Wed 20 Aug 2025 18:10:40 BST
    Build Host   : c967556ec000000
    Packager     : Visual Studio Code Team <vscode-linux@microsoft.com>

Footnotes

  1. rpm-software-management/rpm/discussions/3912

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions