...

Text file src/go/doc/comment/testdata/head.txt

Documentation: go/doc/comment/testdata

     1-- input --
     2Some text.
     3
     4An Old Heading
     5
     6Not An Old Heading.
     7
     8And some text.
     9
    10# A New Heading.
    11
    12And some more text.
    13
    14# Not a heading,
    15because text follows it.
    16
    17Because text precedes it,
    18# not a heading.
    19
    20## Not a heading either.
    21
    22-- gofmt --
    23Some text.
    24
    25# An Old Heading
    26
    27Not An Old Heading.
    28
    29And some text.
    30
    31# A New Heading.
    32
    33And some more text.
    34
    35# Not a heading,
    36because text follows it.
    37
    38Because text precedes it,
    39# not a heading.
    40
    41## Not a heading either.
    42
    43-- text --
    44Some text.
    45
    46# An Old Heading
    47
    48Not An Old Heading.
    49
    50And some text.
    51
    52# A New Heading.
    53
    54And some more text.
    55
    56# Not a heading, because text follows it.
    57
    58Because text precedes it, # not a heading.
    59
    60## Not a heading either.
    61
    62-- markdown --
    63Some text.
    64
    65### An Old Heading {#hdr-An_Old_Heading}
    66
    67Not An Old Heading.
    68
    69And some text.
    70
    71### A New Heading. {#hdr-A_New_Heading_}
    72
    73And some more text.
    74
    75\# Not a heading, because text follows it.
    76
    77Because text precedes it, # not a heading.
    78
    79\## Not a heading either.
    80
    81-- html --
    82<p>Some text.
    83<h3 id="hdr-An_Old_Heading">An Old Heading</h3>
    84<p>Not An Old Heading.
    85<p>And some text.
    86<h3 id="hdr-A_New_Heading_">A New Heading.</h3>
    87<p>And some more text.
    88<p># Not a heading,
    89because text follows it.
    90<p>Because text precedes it,
    91# not a heading.
    92<p>## Not a heading either.

View as plain text