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.
8 lines
250 B
Plaintext
8 lines
250 B
Plaintext
grand_parent1
|
|
parent1 (grand_parent1)
|
|
parent1-child1 (parent1 << grand_parent1)
|
|
parent1-child2 (parent1 << grand_parent1)
|
|
parent2 (grand_parent1)
|
|
parent2-child1 (parent2 << grand_parent1)
|
|
parent2-child2 (parent2 << grand_parent1)
|