Markup
Last Edit: 2023.09.25
Codeblocks
Syntax Highlighting
Shock codeblocks utilize Chroma syntax highlighting, included with Hugo. Codeblock highlighting and rendering does not 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.
{ dist=debian }
# Debian apt install hugo
{ dist=fedora }
# Fedora dnf install hugo
Links
Links will render as expected in Hugo, but will open in a new tab (_blank
) if detected to be an external link.