Markdown features
Back Links (1)
On this page
This theme adds a few additional features to standard markdown.
Images
Embed images using the usual markdown syntax.
md
![](/opengraph.png)
Fenced code blocks
Like you use with GitHub, e.g.
```jsconst variable = 42```
Highlighting lines in code blocks
To highlight lines, wrap line with this comment before: // highlight-start
and this after // highlight-end
. Ensure that these comments are not indented.
css
.grid {// highlight-startdisplay: grid;grid-gap: 30px;// highlight-endgrid-template-columns: repeat(auto-fill, 112px);/* or this */grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));}
```css.grid {// highlight-startdisplay: grid;grid-gap: 30px;// highlight-endgrid-template-columns: repeat(auto-fill, 112px);/* or this */grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));}```
Emoji short codes
Like this: ๐ ๐
md
Like this: :joy: :eggplant:
Details/Summary
Open example
Tada! ๐
html
<details><summary>Open example</summary>Tada! :tada:</details>
Tables
Tables are responsive by default. If you need to limit line length for a cell, add a <br/>
tag to break the lines.
Tables | Are | Cool |
---|---|---|
This is a row | with some | content |
This is another row | with a lot more content. Nullam netus eu fringilla turpis parturient dignissim | Velit ut mauris penatibus turpis commodo consectetur |
Link truncation
This uses remark-truncate-links to truncate links. e.g. github.com/mrmartin...de-notes