Skip to content

Commit 2bb82b4

Browse files
committed
Use our own extension
Use our own extension to show the expected results in the docs. This is a risky move, as if something breaks the docs will be wrong too, but we make sure to always show the real results. Dogfooding is always good. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 56714f0 commit 2bb82b4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,21 @@ This is line 17
4747

4848
This will show the following block of code in the rendered output:
4949

50-
```text
50+
```text show_lines=":2,4,7,10:12,15:"
5151
This is line 1
5252
This is line 2
53+
This is line 3
5354
This is line 4
55+
This is line 5
56+
This is line 6
5457
This is line 7
58+
This is line 8
59+
This is line 9
5560
This is line 10
5661
This is line 11
5762
This is line 12
63+
This is line 13
64+
This is line 14
5865
This is line 15
5966
This is line 16
6067
This is line 17

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ markdown_extensions:
8080
- name: mermaid
8181
class: mermaid
8282
format: !!python/name:pymdownx.superfences.fence_code_format
83+
- name: "*"
84+
class: "highlight"
85+
format: !!python/name:frequenz.pymdownx.superfences.filter_lines.do_format
86+
validator: !!python/name:frequenz.pymdownx.superfences.filter_lines.do_validate
8387
- pymdownx.tabbed
8488
- pymdownx.tasklist:
8589
custom_checkbox: true

0 commit comments

Comments
 (0)