mdbook-codename

Crates.iomdbook-codename
lib.rsmdbook-codename
version0.0.1
sourcesrc
created_at2024-10-24 13:43:55.098481
updated_at2024-10-24 14:13:21.8851
descriptionmdbook-codename is a preprocessor for mdBook that displays the filename of your codeblocks.
homepage
repositoryhttps://github.com/smallkirby/mdbook-codename
max_upload_size
id1421330
size153,294
smallkirby (smallkirby)

documentation

README

mdbook-codename

Publish

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!");
}
```

example

Usage

Add the following to your book.toml:

[preprocessor.codename]

Example

To show the example, run the following command:

mdbook serve --open
Commit count: 5

cargo fmt