1 // PERMUTE_ARGS:
2 // REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o- -preview=markdown
3 // POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh
4 
5 /++
6 # ATX-Style Headings
7 
8 # H1
9 ## H2
10 ### H3
11 #### H4
12 ##### H5
13 ###### H6
14 
15  ### headings
16   ## with initial
17    # spaces
18 
19 ## heading with *emphasis*
20 
21 ## heading with trailing `#`'s #######
22 ## heading with trailing literal ##'s
23 ## heading with another trailing literal#
24 ## heading with backslash-escaped trailing #\##
25 
26 ## Some empty headers:
27 ##
28 #
29 ### ###
30 
31 # Not Headings
32 
33 #hashtag not a heading because there's no space after the `#`
34 
35 ####### Not a heading because it has more than 6 `#`'s
36 
37 \## Not a heading because of the preceeding backslash
38 +/
39 module ddoc_markdown_headings;