Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Zoller <chipzoller@gmail.com>2022-04-26 18:45:10 +0300
committerChip Zoller <chipzoller@gmail.com>2022-04-26 18:45:10 +0300
commit3fcb1db2eaddee13cd5c9b1a69e7e644edf079c8 (patch)
treee374c8dd9d62ada6158c507b7c6c48395e4b2dbb
parentc36f380c01eff668a60825c74e3c9f25063a6d6b (diff)
add how to highlight range of lines
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index e03dd62..17725b1 100644
--- a/README.md
+++ b/README.md
@@ -573,6 +573,12 @@ It is possible to highlight specific lines in a code block by applying `{hl_line
```yaml {hl_lines=[7,8]}
```
+Ranges are also supported by quoting the range inside the braces.
+
+```
+```yaml {hl_lines=["7-18"]}
+```
+
### Table of contents
Each article can optionally have a table of contents (TOC) generated for it based on top-level links. By configuring the `toc` parameter in the article frontmatter and setting it to `true`, a TOC will be generated only for that article. The TOC will then render under the featured image.