diff --git a/otterwiki/static/css/elements/page.css b/otterwiki/static/css/elements/page.css index ceeee970..0ddf9212 100644 --- a/otterwiki/static/css/elements/page.css +++ b/otterwiki/static/css/elements/page.css @@ -83,8 +83,10 @@ .page table { background-color: rgba(0, 0, 0, 0.1); border-collapse: collapse; - margin-bottom: 2rem; + margin-block-start: 1rem; + margin-block-end: 1rem; } + .page th { background-color: rgba(0, 0, 0, 0.2); text-align:center; @@ -113,4 +115,4 @@ .page table > :last-child > tr:last-child > td, .page table > :last-child > tr:last-child > th { border-bottom: 0; -} \ No newline at end of file +} diff --git a/otterwiki/static/css/otterwiki.css b/otterwiki/static/css/otterwiki.css index 688a01aa..dcf4a9c0 100644 --- a/otterwiki/static/css/otterwiki.css +++ b/otterwiki/static/css/otterwiki.css @@ -58,10 +58,21 @@ h5:hover a.anchor { display: none; } +.block-compact { + margin-block-start: 0rem !important; + margin-block-end: 0rem !important; +} + /* pre and code */ div.page > div.highlight { - margin-bottom: 1rem; + margin-block-start: 1rem; + margin-block-end: 1rem; +} + +.page pre { + margin-block-start: 1rem; + margin-block-end: 1rem; } code, diff --git a/otterwiki/templates/snippets/syntax.html b/otterwiki/templates/snippets/syntax.html index 9feea4c6..fa995c0c 100644 --- a/otterwiki/templates/snippets/syntax.html +++ b/otterwiki/templates/snippets/syntax.html @@ -10,7 +10,7 @@
**bold** +**bold** *italics* ~~strikethrough~~ ==mark== @@ -26,7 +26,7 @@{{ name }}
You can use backslash escapes to generate literal characters that are used for formatting otherwise, e.g.-@@ -57,7 +57,7 @@+\*literal asterisks\*{{ name }}
{{ heading("Lists") }}-@@ -72,7 +72,7 @@- Generic list item +- Generic list item - Generic list item - Generic list item{{ name }}
-@@ -88,7 +88,7 @@1. Numbered list item +1. Numbered list item 2. Numbered list item 3. Numbered list item{{ name }}
{{ heading("Links") }}-[[WikiPage]]+[[WikiPage]]WikiPage @@ -97,7 +97,7 @@{{ name }}
-[[Text to display|WikiPage]]+[[Text to display|WikiPage]]Text to display @@ -106,7 +106,7 @@{{ name }}
-http://www.example.com+http://www.example.comhttp://example.com @@ -115,7 +115,7 @@{{ name }}
-[Link with text](http://example.com)+[Link with text](http://example.com)Link with text @@ -125,7 +125,7 @@{{ name }}
{{ heading("Quotes") }}-> This is a quote. +> This is a quote. > It can span multiple lines! >> And multiple levels. >> *With markdown syntax.*@@ -142,14 +142,14 @@{{ name }}
{{ heading("Images") }}You can copy n paste images directly into the editor, they will be uploaded as attachments.
-![](http://www.example.com/image.jpg)+![](http://www.example.com/image.jpg)Check the attachments of a page, there are links for copy'n'paste.
{{ heading("Tables") }}-| Column 1 | Column 2 | Column 3 | +| Column 1 | Column 2 | Column 3 | | -------- | -------- | -------- | | John | Doe | Peach | | Mary | Smith | Banana |@@ -182,7 +182,7 @@{{ name }}
-+Inline code `int n = 1` with backticks.Inline code `int n = 1` with backticks.Inline code@@ -200,13 +200,13 @@int n = 1
with backticks.{{ name }}
-```python +```python #!/usr/bin/env python assert 1 + 1 == 2 print("Hello World!")```-#!/usr/bin/env python +@@ -217,7 +217,7 @@#!/usr/bin/env python assert 1 + 1 == 2 print("Hello World!"){{ name }}
-+Inline math: `$a^2+b^2=c^2$`Inline math: `$a^2+b^2=c^2$`Inline Math: \(a^2+b^2=c^2\)@@ -225,7 +225,7 @@{{ name }}
-+Math block: ```math a^2+b^2=c^2 @@ -242,7 +242,7 @@{{ name }}
-@@ -252,7 +252,7 @@+Inline Math: $a^2+b^2=c^2${{ name }}
-+Equation: $$a^2+b^2=c^2$$@@ -266,7 +266,7 @@{{ name }}
-+Footnote identifiers[^1] are single characters or words[^bignote]. And can be referenced multiple[^1] times. @@ -305,7 +305,7 @@{{ name }}
Fancy blocks
-+::: info # Head of the block. With _formatted_ content. @@ -322,7 +322,7 @@Fancy blocks
Spoiler blocks
-+>! Spoiler blocks reveal their >! content on click on the icon.@@ -337,7 +337,7 @@Spoiler blocks
Folded blocks
-+>| # Headline is used as summary >| with the details folded.@@ -354,7 +354,7 @@Folded blocks
Alerts
-+> [!NOTE] > Useful for highlighting special > information in your code. @@ -371,7 +371,7 @@Alerts
Using Mermaid you can create diagrams and visualizations in your wiki pages.-+```mermaid flowchart LR A[An Otter Wiki]-- supports ---Mermaid