Skip to content

mdbook-codename is a preprocessor for mdBook that displays the filename of your codeblocks.

License

Notifications You must be signed in to change notification settings

smallkirby/mdbook-codename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

mdbook-codename is a preprocessor for mdBook that displays the filename of your codeblocks.

Topics

Resources

License

Stars

Watchers

Forks