Zettelmarkup is not the only markup language you can use to define your content. Zettelstore is quite agnostic with respect to markup languages. Of course, Zettelmarkup plays an important role. However, with the exception of zettel titles, you can use any (markup) language that is supported:
- HTML template data
- Image formats: GIF, PNG, JPEG, SVG
- Plain text, not further interpreted
The metadata key
syntax specifies which language should be used.
If it is not given, the key
default-syntax will be used (specified in the configuration zettel).
The following syntax values are supported:
- A Cascading Style Sheet➚, to be used when rendering a zettel as HTML.
- A simple language to
drawa graphic by using some simple Unicode characters.
- gif; jpeg; jpg; png
- The formats for pixel graphics. Typically the data is stored in a separate file and the syntax is given in the metafile, which has the same name as the zettel identifier and has no file extension.1
Hypertext Markup Language, will not be parsed further. Instead, it is treated as text, but will be encoded differently for HTML format (same for the web user interface).
For security reasons, equivocal elements will not be encoded in the HTML format / web user interface, e.g. the
<script ...tag. See security aspects of Markdown for some details.
- markdown, md
- For those who desperately need Markdown➚. Since the world of Markdown is so diverse, a CommonMark parser is used. See Use Markdown within Zettelstore.
- A Mustache template➚, used when rendering a zettel as HTML for the web user interface.
- Only the metadata of a zettel is
parsed. Useful for displaying the full metadata. The runtime configuration zettel uses this syntax. The zettel content is ignored.
- A Scalable Vector Graphics➚.
- text, plain, txt
- Just plain text that must not be interpreted further.
The actual values are also listed in a zettel named Zettelstore Supported Parser.
If you specify something else, your content will be interpreted as plain text.
- Before version 0.2.0, the metafile had the file extension .meta ↩︎