Skip to content

Line wrap conflicts with mkdocs-material captions #51

@bittorala

Description

@bittorala

Hello! First of all, thanks for this tool! I am thinking of adopting it to format the Material for MkDocs docs sites in our company. A little issue I have encountered is that line wrapping conflicts with Captions, of which we make extensive use.

Input markdown

|a|b|
|-|-|
|c|d|

/// table-caption | 1.5.2
A table with letters.
///

Rendered page:
Image

Markdown formatted with mdformat --wrap 90:

| a   | b   |
| --- | --- |
| c   | d   |

/// table-caption | 1.5.2 A table with letters. ///

Rendered page:
Image

I might think on a fix if you're open to receiving PRs on this.

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