You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# MD004/ul-style - Unordered list styleMD004:
# List stylestyle: sublist# MD007/ul-indent - Unordered list indentationMD007:
# Spaces for indentindent: 4# Whether to indent the first level of the list# start_indented: true# Spaces for first level indent (when start_indented is set)# start_indent: 0# MD010/no-hard-tabs - Hard tabsMD010:
# Include code blockscode_blocks: true# Number of spaces for each hard tabspaces_per_tab: 4# Disable line length check for tables and code blocks# MD013/line-length - Line lengthMD013:
# Include code blockscode_blocks: false# Include tablestables: false# MD029/ol-prefix - Ordered list item prefixMD029:
# List stylestyle: ordered
This might be related to #284.
The following markdown
1. example1
- sub 11
- sub 12
2. example
- sub 21
- sub 22
is formatted to
1. example1
+ sub 11
+ sub 12
2. example
+ sub 21
+ sub 22
because the ul is thought to be at level two, but the actual ul level is 1, just appears under an ol.
If we can specify
Another use case are configuration possibilities when using the plugins for admonitions or content tabs (Both are fairly popular for the commonly used mkdocs material theme for documentation. markdown-it-admon support for admonitions is added (somehow related DavidAnson/vscode-markdownlint#302 at least for me :)).
However than problems arise with
this is normal list
- cde
+ cde
now an admonition follows
!!! note "abc"
abc- cde
Similarly if the proposed rule of #138 is implemented it is also important there.
The text was updated successfully, but these errors were encountered:
To my understanding #284 only asks for a check on the correct number of spaces?! I linked it because I though required changes are similiar?!
Whereas I asked for the possibility to allow ul to start at multiples of start_indent.
Here are some examples demonstrating what I ask for.
With
MD007:
# Spaces for indentindent: 4
we only allow lists to start at the beginning of the line, e.g.
- cde
+ cde
While with
MD007:
# Spaces for indentindent: 4# Whether to indent the first level of the liststart_indented: true# Spaces for first level indent (when start_indented is set)start_indent: 2
we allow
- cde
+ cde
but not the example starting at the beginning of the line.
With a setting allow_multiple_start (or similar):
MD007:
# Spaces for indentindent: 4# new optionallow_multiple_starts: [0,4,8]
we would be more flexible.
Moreover, as I mentioned in the issue description, with the config I posted, the ul list inside the ol is recognized to start at level 2 ul list and formatted accordingly (starting it with a + instead a -). In my mind that's unexpected behavior?!
Here are the relevant
.markdownlint.yaml
settingsThis might be related to #284.
The following markdown
is formatted to
because the
ul
is thought to be at level two, but the actualul
level is 1, just appears under anol
.If we can specify
Another use case are configuration possibilities when using the plugins for admonitions or content tabs (Both are fairly popular for the commonly used mkdocs material theme for documentation.
markdown-it-admon
support for admonitions is added (somehow related DavidAnson/vscode-markdownlint#302 at least for me :)).However than problems arise with
Similarly if the proposed rule of #138 is implemented it is also important there.
The text was updated successfully, but these errors were encountered: