summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/header-attributes.test
blob: 3da7ac7a7de1b0da4a57fb406b918d2e6c991964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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