-
Notifications
You must be signed in to change notification settings - Fork 0
The language syntax
Andrea edited this page Aug 13, 2017
·
6 revisions
This article explains the syntax used to create layouts.
The content can be formatted using Markdown. Each single piece of content is called a content block. Connections between blocs are called flows.
To define a block, one simply starts a new MD <h1>
:
# This is a block
This is the content of the block. The ID of the block is: "this-is-a-block".
Fast IDs
It is possible to define IDs for each block by using the ::
token in the title of the block:
# a::This is a block
This is the content of the block. The ID of the block is either:
- The original title: "this-is-a-block"
- The shortcut: "a"
When rendered, the ID in the title, if present, is stripped, so the block title will be: "This is a block".
IDs are important in order to define flows between blocks.
There are 4 different directional flows which can be specified when connecting two blocks a
and b
:
-
Down By using syntax
a -> b
, blockb
will be rendered below blocka
. -
Up By using syntax
a <- b
, blockb
will be rendered above blocka
. -
Left By using syntax
a => b
, blockb
will be rendered on the left of blocka
. -
Right By using syntax
a <= b
, blockb
will be rendered on the right of blocka
.
Andrea Tino - 2017