Specification
Versions
- Compiler version: 0.3.0
- Specification version: 20260430
Block Elements
- Headings: Headings are marked with the "<3" character. The level of the heading is marked by how many times this character is repeated.
- Paragraphs: Paragraphs start with a piece of text that is not an inline element. Paragraphs end with a newline character.
- Unordered lists: Unordered lists are started with marking a line as a list item. Unordered lists can only contain list items.
Inline Elements
- List item: List items start with the tilde, followed by a space. The end of a list item is demarcated with a newline character.
- Link: A link is enclosed by brackets and reversed angle brackets. The link's information is inside three sections inside the brackets. Each section is delimited by square brackets. To mark the item as a link, the percent operator is used to mark the item as a link. The first section is the link text. The second section is the alt text, and the third section is the URL of the link.
- Bold text: Bold text is enclosed by an underscore on either side.
- Italic text: Italic text is enclosed by an asterisk on either side.
- Image elements: An image link is enclosed by brackets and reversed angle brackets. The image link's information is inside two sections inside the brackets. Each section is delimited by square brackets. To mark the item as an image link, the dollar sign operator is used to mark the item as an image link. The first section is the alt text. The second section is the URL to the image.
Miscellaneous Rules
- Files containing Jirai markup have to end in the ".jirai" file extension.
- Comments have to start with the hash operator and end with a newline character.
- Block elements can contain any number of inline elements.
- The following inline elements can contain other inline elements: list items, bold text, and italic text.