summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test')
-rw-r--r--macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test35
1 files changed, 35 insertions, 0 deletions
diff --git a/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test
new file mode 100644
index 0000000000..ba752d6e8d
--- /dev/null
+++ b/macros/generic/markdown/tests/testfiles/lunamark-markdown/no-header-attributes.test
@@ -0,0 +1,35 @@
+<<<
+This test ensures that the Lua `headerAttributes` option is disabled by default.
+
+# 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 (leftBrace)(hash)first-id(rightBrace)
+interblockSeparator
+headingOne: A level one heading (leftBrace)(hash)second(underscore)id2(rightBrace)
+interblockSeparator
+headingTwo: A level two heading (hash)(hash)(hash) (leftBrace)(hash)third-3id .a-class(rightBrace)
+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 (hash)(hash) (leftBrace)(hash)--7the-seventh-id(rightBrace)
+interblockSeparator
+headingSix: A level six heading (leftBrace)(hash)-(underscore)the-eighth-id attribute=value(rightBrace)