flat-structured doc

what is this

This is simple markup language for simple document. As its name says it's suitable for document having flat structure, i.e. that doesn't have nested elements. This was a bit inspired by gophermaps.

Main underlying concept is contexts (or modes). Context are specified by marker in the beginning of line and defines how following line or text block will be rendered. Basically, when current and previous line context differs we're insert closing tag defined for previous context and openning tag for next context, empty line also "breaks" or "resets" context (e.g. it can be used to split paragraphs). Default context is the paragraph one, i.e. lines without any marker will be wrapped in "<p>" tag. There are also "continuous" markers (like ".. code") which become default context until context break.

markers/tags

headers

level 1 header

level 2 header

level 3 header

Source

= level 1 header == level 2 header === level 3 header

list

Source

* item 1 * item 2 * item 3

code

#!/bin/bash echo "test"

Source

..code #!/bin/bash echo "test"

link

example

Source

.. link example = http://example.com