aboutsummaryrefslogtreecommitdiff
path: root/test.bm
blob: 6ad524e65379fe2f3afa92ad6c58dd99ecdd7ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|h1 Barmark Testing|

|h2 Basic text formatting|

Every line is transformed to a paragraph by default. Blank lines are ignored, so they can be used freely to organize the content.

To add |b bold text| use |b.
To add |i italics text| use |i.
Span elements are added with |s.
However span aren't useful by itself, |s[red] you can add [class] definitions| to any tag.

|h3 Lists|

You can create list surrounding elements with |list and list$|

|list
Element 1
Element 2
Element 3
list$|

At this moment just unordered lists are implemented.

|h3 Links and Images|

To create links use
|code
|a /main.html Main page|
code$|

Similarly you can add images
|code
|img /image.png Alt text|
code$|

|h3 Code|

|code
All the lines between |code and code$| are printed without substitute tags.
code$|

|h3 Divisors|

As span, they could be useful with [class] definitions, they're created surrounding any block with |div and div$|, single lines will become paragraphs and tags are interpreted.

|h3 Avoid the creation of pararaphs|

Finally a line starting with |^ and finishing with $| can be used to render tags without the <p> tags. Other tags are interpreted but it could be used also for add raw html.

|^ <hr /> $|