Crates.io | mdbook-codename |
lib.rs | mdbook-codename |
version | 0.0.1 |
source | src |
created_at | 2024-10-24 13:43:55.098481 |
updated_at | 2024-10-24 14:13:21.8851 |
description | mdbook-codename is a preprocessor for mdBook that displays the filename of your codeblocks. |
homepage | |
repository | https://github.com/smallkirby/mdbook-codename |
max_upload_size | |
id | 1421330 |
size | 153,294 |
mdbook-codename is a mdBook preprocessor to show a filename of the Markdown codeblock.
When you write a filename of the codeblock, the filename is shown above the codeblock.
```src/test.c
void hello(void) {
puts("hello!");
}
```
```c:src/test.c
void hello(void) {
puts("hello!");
}
```
Add the following to your book.toml
:
[preprocessor.codename]
To show the example, run the following command:
mdbook serve --open