getMarkdownOutline

Returns the hierarchy of sections

Section[]
getMarkdownOutline
()

Examples

1 import std.conv : to;
2 assert(getMarkdownOutline("## first\n## second\n### third\n# fourth\n### fifth") ==
3 	[
4 		Section(2, " first", "first"),
5 		Section(2, " second", "second", [
6 			Section(3, " third", "third")
7 		]),
8 		Section(1, " fourth", "fourth", [
9 			Section(3, " fifth", "fifth")
10 		])
11 	]
12 );

Meta