Skip to content

Commit a8a1bdf

Browse files
committed
fix: reorder and clarify language detection instructions in include.md
1 parent a021850 commit a8a1bdf

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

docs/src/local/include.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
>
77
> Language is detected by file extension, which I manually referred, simplified and extended from [linguist](https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml).
88
>
9-
> If you find any issues with the language detection, please open an [issue](https://github.com/MR-Addict/mdbook-embedify/issues). Currenltly language map is under [languages.yaml](https://github.com/MR-Addict/mdbook-embedify/blob/main/src/assets/config/languages.yaml).
10-
11-
> Tip 💡
12-
>
139
> You can customize language detection rules in your `book.toml`. See [Language Matching](../development/language-matching.md#custom-configuration) for details.
10+
>
11+
> If you find any issues with the language detection, please open an [issue](https://github.com/MR-Addict/mdbook-embedify/issues). Currenltly language map is under [languages.yaml](https://github.com/MR-Addict/mdbook-embedify/blob/main/src/assets/config/languages.yaml).
1412
1513
The include app is for including source file and wrapping it as markdown code block.
1614

@@ -24,10 +22,6 @@ The language is automatically detected by the file name extension. You can overr
2422
| lang | This will override the automatically detected language | No | - - |
2523
| range | Range of lines to include, e.g. `1-10` or `1-` or `-10` | No | - - |
2624

27-
> Attention 💥
28-
>
29-
> When `range` is used, it will insert the specified lines starts from 1.
30-
3125
## Example
3226

3327
```text

0 commit comments

Comments
 (0)