Skip to content

Commit 03e632b

Browse files
authored
Merge pull request #562 from iterate-ch/issue/532
Reviewed Formatting
2 parents 4b82d2f + 791b7c0 commit 03e632b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1965
-1881
lines changed

Formatting_Cheat-Sheet.md

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ orphan: true
55
Formatting Cheat Sheet
66
====
77

8+
## General Formatting Guidelines
9+
10+
Add an empty line...
11+
- ...after a heading
12+
- ...before and after an admonition or codeblock
13+
- ...after the admonition class for custom admonitions
14+
- ...after a tab opening and before a tab closing as shown in the [Tabs Section](#tabs)
15+
- ...before and after tables
16+
- ...before and after image inserts with custom properties
17+
18+
Don't add an empty line around admonitions within lists
19+
20+
Indent codeblocks within numbered lists, as the numbers aren't rendered correctly otherwise.
21+
822
## Footnotes
923

1024
- This is a manually-numbered footnote reference.[^3]
@@ -28,19 +42,18 @@ that are not separated by a blank line
2842

2943
## Tabs
3044

31-
````{tabs}
32-
33-
```{group-tab} macOS
45+
::::{tabs}
46+
:::{group-tab} macOS
3447

3548
test
36-
```
3749

38-
```{group-tab} Windows
50+
:::
51+
:::{group-tab} Windows
3952

4053
test
41-
```
4254

43-
````
55+
:::
56+
::::
4457

4558
---
4659

@@ -64,47 +77,47 @@ test
6477

6578
## Admonitions
6679

67-
```{note}
80+
:::{note}
6881
Here is a note!
69-
```
82+
:::
7083

71-
```{warning}
84+
:::{warning}
7285
Here is a warning!
73-
```
86+
:::
7487

75-
```{tip}
88+
:::{tip}
7689
Here is a tip!
77-
```
90+
:::
7891

79-
```{caution}
92+
:::{caution}
8093
Caution!
81-
```
94+
:::
8295

83-
```{attention}
96+
:::{attention}
8497
Attention!
85-
```
98+
:::
8699

87-
```{danger}
100+
:::{danger}
88101
Here is a danger!
89-
```
102+
:::
90103

91-
```{error}
104+
:::{error}
92105
Here is an error!
93-
```
106+
:::
94107

95-
```{hint}
108+
:::{hint}
96109
Here is a hint!
97-
```
110+
:::
98111

99-
```{important}
112+
:::{important}
100113
This is important!
101-
```
114+
:::
102115

103-
```{seealso}
116+
:::{seealso}
104117
See also here!
105-
```
118+
:::
106119

107-
```{admonition} Custom
120+
:::{admonition} Custom
108121
:class: tip
109122
Custom content
110-
```
123+
:::

0 commit comments

Comments
 (0)