@@ -10,7 +10,7 @@ <h4>{{ name }}</h4>
10
10
{{ heading("Emphasis") }}
11
11
< div class ="row mb-10 ">
12
12
< div class ="col-md-6 col-sm-12 ">
13
- < pre > **< strong > bold</ strong > **
13
+ < pre class =" block-compact " > **< strong > bold</ strong > **
14
14
*< em > italics</ em > *
15
15
~~< strike > strikethrough</ strike > ~~
16
16
==< mark > mark</ mark > ==
@@ -26,7 +26,7 @@ <h4>{{ name }}</h4>
26
26
You can use backslash escapes to generate literal characters that are used for formatting otherwise, e.g.
27
27
< div class ="row ">
28
28
< div class ="col-md-6 col-sm-12 ">
29
- < pre >
29
+ < pre class =" block-compact " >
30
30
\*literal asterisks\*
31
31
</ pre >
32
32
</ div >
@@ -57,7 +57,7 @@ <h4>{{ name }}</h4>
57
57
{{ heading("Lists") }}
58
58
< div class ="row ">
59
59
< div class ="col-md-6 col-sm-12 ">
60
- < pre > - Generic list item
60
+ < pre class =" block-compact " > - Generic list item
61
61
- Generic list item
62
62
- Generic list item</ pre >
63
63
</ div >
@@ -72,7 +72,7 @@ <h4>{{ name }}</h4>
72
72
< br />
73
73
< div class ="row ">
74
74
< div class ="col-md-6 col-sm-12 ">
75
- < pre > 1. Numbered list item
75
+ < pre class =" block-compact " > 1. Numbered list item
76
76
2. Numbered list item
77
77
3. Numbered list item</ pre >
78
78
</ div >
@@ -88,7 +88,7 @@ <h4>{{ name }}</h4>
88
88
{{ heading("Links") }}
89
89
< div class ="row ">
90
90
< div class ="col-md-6 col-sm-12 ">
91
- < pre class ="text-wrap "> [[WikiPage]]</ pre >
91
+ < pre class ="block-compact text-wrap "> [[WikiPage]]</ pre >
92
92
</ div >
93
93
< div class ="col-md-6 col-sm-12 pl-5 ">
94
94
< a href ="# "> WikiPage</ a >
@@ -97,7 +97,7 @@ <h4>{{ name }}</h4>
97
97
98
98
< div class ="row ">
99
99
< div class ="col-md-6 col-sm-12 ">
100
- < pre class ="text-wrap "> [[Text to display|WikiPage]]</ pre >
100
+ < pre class ="block-compact text-wrap "> [[Text to display|WikiPage]]</ pre >
101
101
</ div >
102
102
< div class ="col-md-6 col-sm-12 pl-5 ">
103
103
< a href ="# "> Text to display</ a >
@@ -106,7 +106,7 @@ <h4>{{ name }}</h4>
106
106
107
107
< div class ="row ">
108
108
< div class ="col-md-6 col-sm-12 ">
109
- < pre class ="text-wrap "> http://www.example.com</ pre >
109
+ < pre class ="block-compact text-wrap "> http://www.example.com</ pre >
110
110
</ div >
111
111
< div class ="col-md-6 col-sm-12 pl-5 ">
112
112
< a href ="# "> http://example.com</ a >
@@ -115,7 +115,7 @@ <h4>{{ name }}</h4>
115
115
116
116
< div class ="row ">
117
117
< div class ="col-md-6 col-sm-12 ">
118
- < pre class ="text-wrap "> [Link with text](http://example.com)</ pre >
118
+ < pre class ="block-compact text-wrap "> [Link with text](http://example.com)</ pre >
119
119
</ div >
120
120
< div class ="col-md-6 col-sm-12 pl-5 ">
121
121
< a href ="# "> Link with text</ a >
@@ -125,7 +125,7 @@ <h4>{{ name }}</h4>
125
125
{{ heading("Quotes") }}
126
126
< div class ="row ">
127
127
< div class ="col-md-6 col-sm-12 p-5 ">
128
- < pre > > This is a quote.
128
+ < pre class =" block-compact " > > This is a quote.
129
129
> It can span multiple lines!
130
130
>> And multiple levels.
131
131
>> *< em > With markdown syntax.</ em > *</ pre >
@@ -142,14 +142,14 @@ <h4>{{ name }}</h4>
142
142
143
143
{{ heading("Images") }}
144
144
< p > You can copy n paste images directly into the editor, they will be uploaded as attachments.</ p >
145
- < pre > </ pre >
145
+ < pre class =" block-compact " > </ pre >
146
146
< p > Check the attachments of a page, there are links for copy'n'paste.</ p >
147
147
148
148
{{ heading("Tables") }}
149
149
150
150
< div class ="row ">
151
151
< div class ="col-md-6 col-sm-12 p-5 ">
152
- < pre > | Column 1 | Column 2 | Column 3 |
152
+ < pre class =" block-compact " > | Column 1 | Column 2 | Column 3 |
153
153
| -------- | -------- | -------- |
154
154
| John | Doe | Peach |
155
155
| Mary | Smith | Banana |</ pre >
@@ -182,7 +182,7 @@ <h4>{{ name }}</h4>
182
182
183
183
< div class ="row ">
184
184
< div class ="col-md-6 col-sm-12 p-5 ">
185
- < pre class ="text-wrap "> Inline code `int n = 1` with backticks.</ pre > </ div >
185
+ < pre class ="block-compact text-wrap "> Inline code `int n = 1` with backticks.</ pre > </ div >
186
186
< div class ="col-md-6 col-sm-12 p-5 ">
187
187
Inline code < code > int n = 1</ code > with backticks.
188
188
</ div >
@@ -200,13 +200,13 @@ <h4>{{ name }}</h4>
200
200
201
201
< div class ="row ">
202
202
< div class ="col-md-6 col-sm-12 p-5 ">
203
- < pre > ```python
203
+ < pre class =" block-compact " > ```python
204
204
#!/usr/bin/env python
205
205
assert 1 + 1 == 2
206
206
print("Hello World!")```</ pre >
207
207
</ div >
208
208
< div class ="col-md-6 col-sm-12 p-5 ">
209
- < div class ="highlight "> < pre > < span > </ span > < span class =".highlight ch "> #!/usr/bin/env python</ span >
209
+ < div class ="highlight "> < pre class =" block-compact " > < span > </ span > < span class =".highlight ch "> #!/usr/bin/env python</ span >
210
210
< span class =".highlight k "> assert</ span > < span class =".highlight mi "> 1</ span > < span class =".highlight o "> +</ span > < span class =".highlight mi "> 1</ span > < span class =".highlight o "> ==</ span > < span class =".highlight mi "> 2</ span >
211
211
< span class =".highlight nb "> print</ span > < span class =".highlight p "> (</ span > < span class =".highlight s2 "> "Hello World!"</ span > < span class =".highlight p "> )</ span >
212
212
</ pre > </ div >
@@ -217,15 +217,15 @@ <h4>{{ name }}</h4>
217
217
218
218
< div class ="row ">
219
219
< div class ="col-md-6 col-sm-12 p-5 ">
220
- < pre class ="text-wrap "> Inline math: `$a^2+b^2=c^2$`</ pre > </ div >
220
+ < pre class ="block-compact text-wrap "> Inline math: `$a^2+b^2=c^2$`</ pre > </ div >
221
221
< div class ="col-md-6 col-sm-12 p-5 ">
222
222
Inline Math: \(a^2+b^2=c^2\)
223
223
</ div >
224
224
</ div >
225
225
226
226
< div class ="row ">
227
227
< div class ="col-md-6 col-sm-12 p-5 ">
228
- < pre >
228
+ < pre class =" block-compact " >
229
229
Math block:
230
230
```math
231
231
a^2+b^2=c^2
@@ -242,7 +242,7 @@ <h4>{{ name }}</h4>
242
242
243
243
< div class ="row ">
244
244
< div class ="col-md-6 col-sm-12 p-5 ">
245
- < pre >
245
+ < pre class =" block-compact " >
246
246
Inline Math: $a^2+b^2=c^2$
247
247
</ pre >
248
248
</ div >
@@ -252,7 +252,7 @@ <h4>{{ name }}</h4>
252
252
</ div >
253
253
< div class ="row ">
254
254
< div class ="col-md-6 col-sm-12 p-5 ">
255
- < pre >
255
+ < pre class =" block-compact " >
256
256
Equation:
257
257
$$a^2+b^2=c^2$$
258
258
</ pre >
@@ -266,7 +266,7 @@ <h4>{{ name }}</h4>
266
266
267
267
< div class ="row ">
268
268
< div class ="col-md-6 col-sm-12 p-5 ">
269
- < pre >
269
+ < pre class =" block-compact " >
270
270
Footnote identifiers[^1] are single characters
271
271
or words[^bignote]. And can be referenced
272
272
multiple[^1] times.
@@ -305,7 +305,7 @@ <h4>{{ name }}</h4>
305
305
< h4 > Fancy blocks</ h4 >
306
306
< div class ="row ">
307
307
< div class ="col-md-6 col-sm-12 p-5 ">
308
- < pre >
308
+ < pre class =" block-compact " >
309
309
::: info
310
310
# Head of the block.
311
311
With _formatted_ content.
@@ -322,7 +322,7 @@ <h4>Fancy blocks</h4>
322
322
< h4 > Spoiler blocks</ h4 >
323
323
< div class ="row my-20 ">
324
324
< div class ="col-md-6 col-sm-12 ">
325
- < pre >
325
+ < pre class =" block-compact " >
326
326
>! Spoiler blocks reveal their
327
327
>! content on click on the icon.
328
328
</ pre >
@@ -337,7 +337,7 @@ <h4>Spoiler blocks</h4>
337
337
< h4 > Folded blocks</ h4 >
338
338
< div class ="row my-20 h-100 ">
339
339
< div class ="col-md-6 col-sm-12 ">
340
- < pre >
340
+ < pre class =" block-compact " >
341
341
>| # Headline is used as summary
342
342
>| with the details folded.
343
343
</ pre >
@@ -354,7 +354,7 @@ <h4>Folded blocks</h4>
354
354
< h4 > Alerts</ h4 >
355
355
< div class ="row ">
356
356
< div class ="col-md-6 col-sm-12 p-5 ">
357
- < pre >
357
+ < pre class =" block-compact " >
358
358
> [!NOTE]
359
359
> Useful for highlighting special
360
360
> information in your code.
@@ -371,7 +371,7 @@ <h4>Alerts</h4>
371
371
Using < a href ="https://mermaid.js.org/ "> Mermaid</ a > you can create diagrams and visualizations in your wiki pages.
372
372
< div class ="row ">
373
373
< div class ="col-md-6 col-sm-12 p-5 ">
374
- < pre >
374
+ < pre class =" block-compact " >
375
375
```mermaid
376
376
flowchart LR
377
377
A[An Otter Wiki]-- supports ---Mermaid
0 commit comments