Skip to content

Commit 1ea1004

Browse files
committed
Fix md formatting for code blocks (can't check on localhost)
1 parent f226938 commit 1ea1004

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,31 +72,37 @@ This may change.
7272
- To set up a URL redirect, add an alias to the page you want to
7373
redirect *to*. This goes in the header part of the .md (the part
7474
between the three dashes) and looks like this:
75-
[code]
75+
```
7676
aliases:
7777
- /events/bosc/
78-
[/code]
78+
```
79+
7980
- To include an image, you can use this markdown format:
80-
[code]
81+
```
8182
![alt text](image-path)
82-
[/code]
83+
```
84+
8385
- Images take up the full width of the page. If you want to scale an
8486
image, use this html:
85-
[code]
87+
```
8688
<img src="image-path" style="width:75%" alt="alt text" />
87-
[/code]
89+
```
90+
8891
- When testing changes on localhost:1313, note that changes that
8992
involve .pngs take effect right away, but for some reason, if you're
9093
using .jpg or .jpeg images, it takes a while (20 min or so?) for
9194
them to show up on localhost. No idea why.
9295
- To enclose a section of text in a gray box use
93-
[code]<div class="well">[/code]
96+
```
97+
<div class="well">
98+
```
99+
94100
- To make two columns (e.g. to run text next to an image), use
95101
"columns" (look for an example in one of our .mds)
96102
- You can make a button like this:
97-
[code]
103+
```
98104
<a href="URL" class="btn btn-lg btn-primary">text on button</a>
99-
[/code]
105+
```
100106

101107
## Steps taken to port content from old WP site
102108

0 commit comments

Comments
 (0)