In this appendix you'll learn about FoldingText Markup Language (FTML) which FoldingText uses to store outlines.
FTML is subset of HTML that FoldingText uses for storing outline data. This means you can open and view your outlines in any web browser, and you can use HTML processing tools to work with them.
<html> <body> <ul id="FoldingText"> <li id="my7pJv4v"> <p>one</p> </li> <li id="mJ46JwEv"> <p>t<b>w</b>o</p> <ul> <li id="QyLTkw4v"> <p>three</p> </li> </ul> </li> </ul> </body> </html>
Things to notice:
The structure is a nested unordered list.
Each list item has a unique and persistent ID.
The body text of each list item is contained in a
p tag structure is fixed, you can't omit or add new elements into that structure.
Inline text semantics elements are allowed inside the
p element (including:
i, etc.). In addition
ins are allowed.
There are two places to store custom data in the format. You can add
data attributes to the
li elements and you can also add
data attributes to the inline elements.