I want to parse this (newlines are important):
L1
==1==
L2
L3
===1.1===
L4
L5
===1.2===
L6
====1.2.1====
L7
====1.2.2====
L8
==2==
L9
Into this:
["L1"
[{:h "1"}
["L2"
"L3"
[{:h "1.1"}
"L4"
"L5"
[{:h "1.2"}
"L6"
[{:h "1.2.1"}
"L7"]
[{:h "1.2.2"}
"L8"]]]]]
[{:h "2"}]]
(heading? "===Whatever===")
->true
(heading-title "===Whatever===")
->"Whatever"
(heading-level "===Whatever===")
->2
(the minimum heading level is 1, with "==")