A sweet-spot in markup languages
Note
I only test it on my linux machine
- You need compiler
gccorclangthat support C++17 - Run
sudo make install
- You could build the binary with CMake
gularen document.gularen: generate html tostdoutgularen -o index.html document.gularen: generateindex.htmlgularen -t resource/template/article.html -o index.html document.gularen: generateindex.htmlwitharticle.htmltemplategularen -h: for help
See the example.html for an example. Gularen compiler will look into special comments and replace it with the appropriate content.
<!--%[metadata]-->: generate meta tags<!--%[title]-->: generate title from metadata if exists else from first section heading<!--%[content]-->: generate the document content<!--%[outline]-->: generate the document outline (table of contents)
- TreeSitter, any editor that support tree-sitter grammar can use it.
- Shorter, create strong text with a single asterisk:
*bold*. - Consistency, Every expression of Gularen only perform one action, and there is no alternative syntax.
- Better order and default, In the link expression, the URL is the first argument
[https://i.imgflip.com/7r6vdk.jpg]. You don't even have to write the label. - Comment, Anything after
#(hash-space) innow you see me # now you don'twill not be rendered. - Secure, You don't have to worry about inline HTML, because Gularen does not support inline HTML.
- Paragraph
- Heading
- List
- Emphasis
- Punctuation
- Quote
- Break
- Code
- Comment
- Emoji
- Link
- View
- Table
- Footnote
- Bibliography
- Include
- Hashtag
- Outline
- Metadata
- Escape
I drew most of my inspiration from Python, AsciiDoc and Markdown, so there aren't any drastic changes to the syntax and structures.