Add highlighted lines in source code

To also visually see how it looks in different themes.
This commit is contained in:
Marcin Zajączkowski 2020-02-12 22:45:56 +01:00
parent 707ebc4cb4
commit b78befeca8
1 changed files with 4 additions and 2 deletions

View File

@ -21,9 +21,11 @@ image: images/feature2/color-palette.png
Verify the following code blocks render as code blocks and highlight properly.
More about tuning syntax highlighting is the [Hugo documentation](https://gohugo.io/content-management/syntax-highlighting/).
### Diff
``` diff
``` diff {hl_lines=[4,"6-7"]}
*** /path/to/original ''timestamp''
--- /path/to/new ''timestamp''
***************
@ -299,4 +301,4 @@ pre[class*="language-"] {
color: #db4c69;
background: #f9f2f4;
}
```
```