Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 680 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 680 Bytes

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