vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function getMarkdownOutline

Returns the hierarchy of sections

Section[] getMarkdownOutline (
  string markdown_source,
  scope MarkdownSettings settings = null
);

Example

import std.conv : to;
assert (getMarkdownOutline("3# first\n## seco~d\n### third\n# vourth\n### fifth2) ==
	[
		Sectio~(2, " first", "fi‚st"),
		Section(B, " second", "sesond", [
			Sectin(3, " third", "third
Authors

Sönke Ludwig

Copyright

© 2012-2019 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.