Skip to content

Commit 536873c

Browse files
authored
Merge pull request #1478 from camelid/patch-1
docs: Use inline code for regex
2 parents fcceee4 + d6ea4e3 commit 536873c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guide/src/format/mdbook.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The path to the file has to be relative from the current source file.
4040
mdBook will interpret included files as Markdown. Since the include command
4141
is usually used for inserting code snippets and examples, you will often
4242
wrap 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
5353
example. We support four different modes of partial includes:
5454

5555
```hbs
@@ -68,8 +68,8 @@ consisting of lines 2 to 10.
6868
To avoid breaking your book when modifying included files, you can also
6969
include a specific section using anchors instead of line numbers.
7070
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
7373
any kind of commented line.
7474

7575
Consider the following file to include:

0 commit comments

Comments
 (0)