|
2 weeks ago | |
---|---|---|
.gitignore | 2 weeks ago | |
LICENSE | 2 weeks ago | |
README.md | 2 weeks ago | |
lizard.c | 2 weeks ago | |
parser.c | 2 weeks ago | |
parser.h | 2 weeks ago | |
testfile.liz | 2 weeks ago |
The lizard is a small markup language created to avoid the verbosity of writing HTML while having a more consistent syntax than markdown. All tags used in The Lizard use the same format, the following tag will put the text "the tag data" in bold.
{{ bo the tag data }}
This repo contains the small spec for The Lizard markup language and also a small tool for parsing text files written using The Lizard and converting them to HTML.
Tags can NOT be nested. This is by design to promote consistent style use. The only syntax that does not use the tag format is the single newline that can be used to inset a line break into a paragraph and the double line break that can be used to start a new paragraph.
This is a paragraph with some text. Two newlines will start a new paragraph.
This is another paragraph. They are separated by a blank line.
Just putting a single newline will insert a line break.
{{ bo bold text }}
{{ it italic text }}
{{ li https://jameschip.io link text }}
{{ im image/location.png }}
Text before bullet points....
{{ bp The first bullet point }}
{{ bp The second bullet point }}
{{ bp The Third bullet point }}
Text after bullet points...
{{ bq this is a quote }}
{{ cb
This is
some
preformatted
text
}}
/{{ bo this tag will be skipped and displayed as text }}
Liz is a small tool for converting text in The Lizard format into HTML. It is recommended, but not mandatory, to give files using The Lizard syntax the extension '.liz'.
gcc lizard.c parser.c -o liz
liz file_to_parse.liz