diff options
Diffstat (limited to 'macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test')
-rw-r--r-- | macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test new file mode 100644 index 0000000000..3da7ac7a7d --- /dev/null +++ b/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test @@ -0,0 +1,37 @@ +\def\markdownOptionHeaderAttributes{true} +<<< +This test ensures that the Lua `headerAttributes` option correctly propagates +through the plain TeX interface. + +# A level one heading {#first-id} + +A level one heading {#second_id2} +================================= + +## A level two heading ### {#third-3id .a-class} + +A level two heading {#fourth4-id .2not-a-class} +----------------------------------------------- + +### A level three heading ## {#5not-the-fifth-id} +#### A level four heading {#-6not-the-sixth-id} +##### A level five heading ## {#--7the-seventh-id} +###### A level six heading {#-_the-eighth-id attribute=value} +>>> +codeSpan: headerAttributes +interblockSeparator +headingOne: A level one heading +interblockSeparator +headingOne: A level one heading +interblockSeparator +headingTwo: A level two heading +interblockSeparator +headingTwo: A level two heading (leftBrace)(hash)fourth4-id .2not-a-class(rightBrace) +interblockSeparator +headingThree: A level three heading (hash)(hash) (leftBrace)(hash)5not-the-fifth-id(rightBrace) +interblockSeparator +headingFour: A level four heading (leftBrace)(hash)-6not-the-sixth-id(rightBrace) +interblockSeparator +headingFive: A level five heading +interblockSeparator +headingSix: A level six heading |