Minimarkup

Minimarkup is a small language designed to make the creation of HTML documents quick and easy from the author's view of quick and easy.

Basic design

There are two types of commands, commands that are marked by @ in running text, or line based commands which always occupy an entire line. Their main difference apart from this, is that line based commands are identified by the parser recognizing the entire word, with @-marked commands only the text needed to identify the command unambiguously is needed

Line based commands

Title
Title: <Page title>
Header
Header: <Header text>
Subheader
Subheader: <Header text>
Include
Include: <File name>
Code
Code:
Text
Text:

Markup is ignored in arguments to line based commands. Except for with the Include-command, the argument will be quoted to be suited for inclusion into HTML.

Note: Include does not quote the text from included files in text mode, but does in code mode.

@-marked commands

Italic
@Italic <Text element>
OrderedList
@OrderedList { <Text elements> }
UnorderedList
@UnorderedList { <Text elements> }
TaggedList
@TaggedList { <Tag> <Text> }
Table
@Table { { Columns } }
Link
@Link <URL> <Text>
Image
@Image <URL> <Text>
Paragraph
@Paragraph <Text element>
Join
@Join <Text element> <Text element>
@
@@
{
@{
}
@}

Syntax notes

Elements are generally separated by white space. The only exception being the placing of @ when identifying tags, this can both be separated from the tag name and added in front of the word. When a single element consists of several "words", { and } are used to group elements.

Steinar Knutsen, 2001-06-21, last updated 2003-12-22