Skip to content

When You execute a command on a table that contains code with backticks, you don't get expected results #78

@yarakos95

Description

@yarakos95

If you have a string like `` ` `` `` in a table and you execute the commands provided by this extension to format it, an extra vertical bar will appear.

To reproduce

  1. Create Markdown table like below:
    | | |
    | ------- | - |
    | `` ` `` | |
  2. Execute markdowntable.alignLeft once on 2-1 cell
  3. You will get the following result:
    |           |     |
    | --------- | --- |
    | `` ` `` | |     |

If you execute markdowntable.~ repeatedly in this table, the number of | will increase accordingly.

I would like the result to be something like:

|         |     |
| ------- | --- |
| `` ` `` |     |

Version

  • VS Code
    Version: 1.100.3 (user setup)
    Commit: 258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3
    Date: 2025-06-02T13:30:54.273Z
    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.26100
    
  • Markdown Table: 0.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions