Skip to content

Tables inside lists are not treated as being part of the list item #383

Description

@Wikiwix

rumdl version

0.1.13

Installation method

Other

Bug description

Perhaps a continuation of #314

If a table is inside a list item, but not on the fist line, the table is not treated as being part of the list:

$ cat rumdl-demo.md
# Title

| c1 | c2 |
|-|-|
| foo | bar |

- Test
  | c1 | c2 |
  |-|-|
  | foo | bar |

 1. Another
    | c1 | c2 |
    |-|-|
    | foo | bar |

$ cat rumdl-demo.md | rumdl fmt -
# Title

| c1  | c2  |
| --- | --- |
| foo | bar |

- Test

| c1  | c2  |
| --- | --- |
| foo | bar |

1. Another

| c1  | c2  |
| --- | --- |
| foo | bar |

### Steps to reproduce

See above

### Expected behavior

See above

### Actual behavior

See above

### Configuration

```toml
[table-format]
# https://github.com/rvben/rumdl/blob/main/docs/md060.md
enabled = true
style = "aligned"

Operating system

Windows

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions