Crates.io | mdbook-metadata |
lib.rs | mdbook-metadata |
version | 0.1.1 |
source | src |
created_at | 2024-04-04 22:53:23.610733 |
updated_at | 2024-04-05 22:28:22.826211 |
description | mdBook preprocessor to parse markdown metadata |
homepage | https://github.com/jeffersonroth/mdbook-metadata |
repository | https://github.com/jeffersonroth/mdbook-metadata |
max_upload_size | |
id | 1196872 |
size | 67,623 |
mdBook preprocessor to parse markdown metadata.
Install the cli tool:
cargo install mdbook-metadata
Add the preprocessor to your book.toml
file:
[preprocessor.metadata]
valid-tags = ["title", "author", "keywords", "released"]
default-author = "Jane Doe"
continue-on-error = true # default: true
Add metadata to your markdown file:
---
title: Example
author: Your Name
keywords: tag1, tag2
released: false
---
# Example
Build your book and serve it locally:
mdbook serve --hostname 0.0.0.0
Verify the rendered html head tags are correct (title and meta).
Copyright (C) 2024 Jefferson Johannes Roth Filho. See LICENSE
for more information.
Jefferson Roth - jjrothfilho@gmail.com
Project Link: https://hub.docker.com/r/jeffroth/mdbook-metadata
crates.io: mdbook-metadata