Sha256: 6049fd272dd1e328c753a283318089c040e5080fb75ca0ce83ef40a37fbef42e
Contents?: true
Size: 958 Bytes
Versions: 8
Compression:
Stored size: 958 Bytes
Contents
--- # correctly structured sections testdata: | <h1 id="h11">title</h1> test asdfsd lasf kjl s af <h2 id="h21">subtitle</h2> asdfsdf asdfsdf lkdfasdf <h3 id="h31">subsubtitle</h3> aslkdfjsöf asdfsdfasd <h2 id="h22">subtitle2</h2> asdfasdfasdfasdfasdf asdfasdf <h1 id="h12">title2</h1> <h1 id="h13">title3</h1> result: - [1, h11, title, [[2, h21, subtitle, [[3, h31, subsubtitle]]], [2, h22, subtitle2]]] - [1, h12, title2] - [1, h13, title3] --- # sections no correctly structured testdata: | <h2 id="h21">subtitle</h2> <h4 id="h41">subsubsubtitle</h4> <h1 id="h11">title</h1> result: - [2, h21, subtitle, [[4, h41, subsubsubtitle]]] - [1, h11, title] --- # invalid sections ignored testdata: | <h1 id="h11">title</h1> <h2 id="h21">subtitle</h2> <h1 id="h12">ignored</h2> <h4>also ignored</h4> <h4 id="h41">subsubsubtitle</h4> result: - [1, h11, title, [[2, h21, subtitle, [[4, h41, subsubsubtitle]]]]]
Version data entries
8 entries across 8 versions & 1 rubygems