[GH-ISSUE #365] MD029 Is there a way to "hide" tables embedded in an ordered list? #308

Closed
opened 2026-03-03 01:25:35 +03:00 by kerem · 4 comments
Owner

Originally created by @jamesmrollins on GitHub (Jan 8, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/365

Hi @DavidAnson
We have developed training documentation where we want to embed a table into an ordered list. Unfortunately, when we do that, it breaks the ordered list and is reported as an error in MD029. See below for an example. If there was a way to "hide" the table, such as when one hides a special character by placing the backslash character immediately before it, that might work?

image

Originally created by @jamesmrollins on GitHub (Jan 8, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/365 Hi @DavidAnson We have developed training documentation where we want to embed a table into an ordered list. Unfortunately, when we do that, it breaks the ordered list and is reported as an error in MD029. See below for an example. If there was a way to "hide" the table, such as when one hides a special character by placing the backslash character immediately before it, that might work? ![image](https://user-images.githubusercontent.com/30132017/104054226-8fdad580-51a1-11eb-9e86-9b0dc8b9767b.png)
kerem 2026-03-03 01:25:35 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner
<!-- gh-comment-id:756980257 --> @DavidAnson commented on GitHub (Jan 8, 2021): Here is a table in an ordered list with no issues. Is that what you want? https://dlaa.me/markdownlint/#%25m%23%20Table%20in%20ordered%20list%0A%0A1.%20Text%0A%20%20%20%7C%20Table%20%7C%20Table%20%7C%0A%20%20%20%7C-%7C-%7C%0A%20%20%20%7C%20Table%20%7C%20Table%20%7C%0A
Author
Owner

@jamesmrollins commented on GitHub (Jan 8, 2021):

Yes this would work. I attempted to indent the tables 4 spaces, but when I did that, they blew up.

<!-- gh-comment-id:756981922 --> @jamesmrollins commented on GitHub (Jan 8, 2021): Yes this would work. I attempted to indent the tables 4 spaces, but when I did that, they blew up.
Author
Owner

@nschonni commented on GitHub (Jan 8, 2021):

Maybe try adding the leading | to the rows when you indent

<!-- gh-comment-id:756985657 --> @nschonni commented on GitHub (Jan 8, 2021): Maybe try adding the leading `|` to the rows when you indent
Author
Owner

@jamesmrollins commented on GitHub (Jan 8, 2021):

Thank you @DavidAnson and @nschonni. It worked great. The tables blew up because I didn't indent the appropriate number of spaces. Now is both formatted correctly and passing the lint check. This item has been resolved.

<!-- gh-comment-id:756995996 --> @jamesmrollins commented on GitHub (Jan 8, 2021): Thank you @DavidAnson and @nschonni. It worked great. The tables blew up because I didn't indent the appropriate number of spaces. Now is both formatted correctly and passing the lint check. This item has been resolved.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#308
No description provided.