Markup
Last Edit: 2025.01.24
Markup rendering when using Shock.
Codeblocks
Syntax Highlighting
Shock codeblocks utilize Chroma syntax highlighting, included with Hugo. Codeblock highlighting and rendering doesn’t require JavaScript to function.
```bash
echo "Hello World!"
```echo "Hello World!"Attributes
dist: Comment prepended to the codeblock, meant to specify distribution or language variances.
```bash { dist=debian }
apt install hugo
```# Debian
apt install hugoImages
Images will render as expected in Hugo, but include the img-fluid Bootstrap class.
Links
Links will render as expected in Hugo, but will open in a new tab (_blank) if detected to be an external link.
Tables
Tables will render as expected, but include Bootstrap classes to make them responsive.
| Example | Table | Here | Dude |
|---|---|---|---|
| Linux | is | the | best |
| Hugo | 5 | ever | amirite |
| Floss | your | teeth | please |