Skip to content

Improve handing of tabs #41

@mdeweerd

Description

@mdeweerd

Describe the bug

According to hukkin/mdformat-gfm#23 (comment) there is an issue with the parser regarding how tabs are handled.

I do not know how exactly, but they produce a side effect in the mdformat-gfm plugin.

Reproduce the bug

Use mdformat with the mdformat-gfm plugin.

Some brackets are escaped even when using mdformat-gfm in cases where the closing bracket is followed with a tab.

Example file:
https://gist.githubusercontent.com/mdeweerd/177a260cc0deb83566ce85847e0bab71/raw/ba5cf9671a1a9d10ec03ddea9d00b6a2a2cf5365/Test%2520Markdown%2520with%2520tabs%2520and%2520tickboxes.md

List your environment

mdformat 0.7.13 (mdformat_gfm: 0.3.5, mdformat_tables: 0.4.1, mdformat_toc:
0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions