mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #365] MD029 Is there a way to "hide" tables embedded in an ordered list? #308
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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
@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.
@nschonni commented on GitHub (Jan 8, 2021):
Maybe try adding the leading
|to the rows when you indent@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.