Move regex preparation into methods, use named subpatterns so the regex makes more sense. Fix the logic around eating newlines adjacent to tags. Update tests to reflect the changes.
7 lines
139 B
Plaintext
7 lines
139 B
Plaintext
<h1>Colors</h1>
|
|
<ul>
|
|
<li><strong>red</strong></li>
|
|
<li><a href="#Green">green</a></li>
|
|
<li><a href="#Blue">blue</a></li>
|
|
</ul>
|