diff options
author | Chip Zoller <chipzoller@gmail.com> | 2022-04-26 18:45:10 +0300 |
---|---|---|
committer | Chip Zoller <chipzoller@gmail.com> | 2022-04-26 18:45:10 +0300 |
commit | 3fcb1db2eaddee13cd5c9b1a69e7e644edf079c8 (patch) | |
tree | e374c8dd9d62ada6158c507b7c6c48395e4b2dbb | |
parent | c36f380c01eff668a60825c74e3c9f25063a6d6b (diff) |
add how to highlight range of lines
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |