-
Notifications
You must be signed in to change notification settings - Fork 0
/
qomar_tutor.qm
176 lines (138 loc) · 2.45 KB
/
qomar_tutor.qm
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
title qomar Tutorial
date 1657402127
tag tutorial
tag qomar
-----
Qomar is a new markup language for writing blog posts.
If a feature that you need doesn\'t exist, then you can simply use HTML.
All of the things below can be escaped with `\\`.
--> Comments
Everything written between `/*` and `*/` will be ignored by the compiler.
Input:
```
/* This is a comment! */
```
Output:
/* This is a comment! */
--> Code
Everything written between `\`` and `\`` will be compiled as inline code, and everything written between `\`\`\`` and `\`\`\`` will be compiled as block code.
Input:
```
Some `Inline code`
Some \``` Block code \```
```
Output:
Some `Inline code`
Some ``` Block code ```
--> Paragraphs
Paragraphs can be splitted with two newlines.
Input:
```
This is a paragraph.
This is another paragraph.
```
Output:
This is a paragraph.
This is another paragraph.
--> Text decoration
The example explains itself.
Input:
```
''bold text''
'italic text'
'''italic and bold text'''
```
Output:
''bold text''
'italic text'
'''italic and bold text'''
--> Headers
Headers can be achieved with `-> header` ... `------> header`, compiled as `<hN>` where N is the count of `-` characters.
Input:
```
-> This is a header
--> This a smaller one
---> This is smaller
----> About a normal text!
Here\\'s a normal text for comparison
-----> Too small!
------> Almost unreadable!
```
Output:
-> This is a header
--> This a smaller one
---> This is smaller
----> About a normal text!
Here\'s a normal text for comparison
-----> Too small!
------> Almost unreadable!
--> Lists
I don\'t know how to explain a list, see below.
Input:
```
* This
* is
* a
* unordered
* list!
* Sub-lists are not possible, currently.
^ This
^ is
^ an
^ ordered
^ list!
```
Output:
* This
* is
* a
* unordered
* list!
* Sub-lists are not possible, currently.
^ This
^ is
^ an
^ ordered
^ list!
--> Quote
Text that do not belong to you.
Input:
```
> This is a quote!
It will still be a quote until there are 2 newlines
like:
this
```
Output:
> This is a quote!
It will still be a quote until there are 2 newlines
like:
this
--> Mention
Mention an author.
Input:
```
@Arnolxu
```
Output:
@Arnolxu
--> Link
Create a link.
Input:
```
[https://qolang.camroku.tech QoLang Website]
[/p/test_page Test Page]
[https://qolang.camroku.tech]
```
Output:
[https://qolang.camroku.tech QoLang Website]
[/p/test_page Test Page]
[https://qolang.camroku.tech]
--> Tags
A link to a tag.
Input:
```
#test
```
Output:
#test