Skip to content

Commit 652b3f9

Browse files
committed
Convert a few more markdown-include plugin usages to pymdown.snippets extension syntax instead
1 parent b443268 commit 652b3f9

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

docs/examples/getting_started.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ click the **Copy** button in the top-right):
1919
!!! example "getting_started.py"
2020

2121
```py
22-
{%
23-
include "../../examples/getting_started.py"
24-
%}
22+
--8<-- "examples/getting_started.py"
2523
```
2624

2725
## Basic Application

docs/features/initialization.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ Here is a basic example `cmd2` application which demonstrates many capabilities
55
!!! example "examples/getting_started.py"
66

77
```py
8-
{%
9-
include "../../examples/getting_started.py"
10-
%}
8+
--8<-- "examples/getting_started.py"
119
```
1210

1311
## Cmd class initializer

docs/features/settings.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ Here's an example, from
105105
!!! example "examples/environment.py"
106106

107107
```py
108-
{%
109-
include "../../examples/environment.py"
110-
%}
108+
--8<-- "examples/environment.py"
111109
```
112110

113111
If you want to be notified when a setting changes (as we do above), then be sure to supply a method

0 commit comments

Comments
 (0)