DESCRIPTION

This test is about excluding HTML “anchors” from output, that is, all and only markdown lines that consist of validly-formed HTML tag <a name="some name">.

Note that this file includes invalid HTML tags.

TESTS


TEST INVALID TAGS...

RESULT Just a line consisting of the “TEST ...” heading.


TEST <a> tag without name attribute...

RESULT Just a line consisting of the “TEST ...” heading.


TEST <a> tags that are followed by non-white space...

suffix suffix suffix

RESULT A line consisting of the “TEST ...” heading followed by a line consisting of “suffix” repeated three times.


TEST valid anchors: show nothing until the next RESULT

RESULT A line consisting of the “TEST ...” heading


TEST anchors in code blocks: show them as code

    <a name="show me"></a>
<a name="show me"></a>

RESULT two lines each consisting of <a name="show me"></a>.


PASS if all RESULT lines above are true