File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ The path to the file has to be relative from the current source file.
40
40
mdBook will interpret included files as Markdown. Since the include command
41
41
is usually used for inserting code snippets and examples, you will often
42
42
wrap the command with ```` ``` ```` to display the file contents without
43
- interpretting them.
43
+ interpreting them.
44
44
45
45
```` hbs
46
46
```
@@ -49,7 +49,7 @@ interpretting them.
49
49
````
50
50
51
51
## Including portions of a file
52
- Often you only need a specific part of the file e.g. relevant lines for an
52
+ Often you only need a specific part of the file, e.g. relevant lines for an
53
53
example. We support four different modes of partial includes:
54
54
55
55
``` hbs
@@ -68,8 +68,8 @@ consisting of lines 2 to 10.
68
68
To avoid breaking your book when modifying included files, you can also
69
69
include a specific section using anchors instead of line numbers.
70
70
An anchor is a pair of matching lines. The line beginning an anchor must
71
- match the regex " ANCHOR:\s* [ \w_ -] +" and similarly the ending line must match
72
- the regex " ANCHOR_END:\s* [ \w_ -] +" . This allows you to put anchors in
71
+ match the regex ` ANCHOR:\s*[\w_-]+ ` and similarly the ending line must match
72
+ the regex ` ANCHOR_END:\s*[\w_-]+ ` . This allows you to put anchors in
73
73
any kind of commented line.
74
74
75
75
Consider the following file to include:
You can’t perform that action at this time.
0 commit comments