2 releases
0.0.1 | Oct 24, 2024 |
---|---|
0.0.0 | Oct 24, 2024 |
#7 in #code-block
259 downloads per month
105KB
170 lines
mdbook-codename
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!");
}
```
Usage
Add the following to your book.toml
:
[preprocessor.codename]
Example
To show the example, run the following command:
mdbook serve --open
Dependencies
~13–24MB
~343K SLoC