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.
4040mdBook will interpret included files as Markdown. Since the include command
4141is usually used for inserting code snippets and examples, you will often
4242wrap the command with ```` ``` ```` to display the file contents without
43- interpretting them.
43+ interpreting them.
4444
4545```` hbs
4646```
@@ -49,7 +49,7 @@ interpretting them.
4949````
5050
5151## 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
5353example. We support four different modes of partial includes:
5454
5555``` hbs
@@ -68,8 +68,8 @@ consisting of lines 2 to 10.
6868To avoid breaking your book when modifying included files, you can also
6969include a specific section using anchors instead of line numbers.
7070An 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
7373any kind of commented line.
7474
7575Consider the following file to include:
You can’t perform that action at this time.
0 commit comments