Update MD035/hr-style to preserve embedded spaces in thematic break markup (fixes #498).

This commit is contained in:
David Anson 2022-04-28 21:53:51 -07:00
parent b447c809bd
commit 7a5886b976
9 changed files with 49 additions and 10 deletions

View file

@ -36,4 +36,4 @@ ___
>
> Text
{MD035:31} {MD035:33}
{MD035:23} {MD035:31} {MD035:33}

View file

@ -36,4 +36,4 @@ ___
>
> Text
{MD035:29} {MD035:33}
{MD035:23} {MD035:29} {MD035:33}

View file

@ -36,4 +36,4 @@ _ _ _
>
> Text
{MD035:29} {MD035:31}
{MD035:23} {MD035:29} {MD035:31}

28
test/hr-style-custom.md Normal file
View file

@ -0,0 +1,28 @@
# HR Style Custom
Text
---
{MD035:5}
Text
- - -
{MD035:10}
Text
- - -
Text
***
{MD035:19}
Text
<!-- markdownlint-configure-file {
"hr-style": {
"style": "- - -"
}
} -->

View file

@ -20,4 +20,5 @@ _____
***
{MD035:3} {MD035:5} {MD035:7} {MD035:13} {MD035:15} {MD035:17} {MD035:19} {MD035:21}
{MD035:3} {MD035:5} {MD035:7} {MD035:11} {MD035:13}
{MD035:15} {MD035:17} {MD035:19} {MD035:21}

View file

@ -20,4 +20,4 @@ _____
***
{MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}
{MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}

View file

@ -20,4 +20,4 @@ _____
***
{MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}
{MD035:5} {MD035:7} {MD035:9} {MD035:11} {MD035:13} {MD035:15} {MD035:17} {MD035:19}