Crates.io | mdbook-svgdx |
lib.rs | mdbook-svgdx |
version | 0.2.0 |
source | src |
created_at | 2024-09-25 16:15:15.790127 |
updated_at | 2024-10-03 14:46:49.825884 |
description | mdbook preprocessor to convert svgdx fenced code blocks into inline SVG images |
homepage | |
repository | https://github.com/codedstructure/mdbook-svgdx |
max_upload_size | |
id | 1386482 |
size | 67,742 |
A preprocessor for mdBook to convert svgdx fenced code blocks into inline SVG images.
For now installation requires a working Rust toolchain, e.g. installed from rustup.rs.
Install mdbook-svgdx
as follows:
cargo install mdbook-svgdx
Your mdbook source must be configured to use the mdbook-svgdx
preprocessor.
To do this, simply add the following line to your book.toml
file.
[preprocessor.svgdx]
To test changes to mdbook-svgdx
, update your book.toml
with the following 'command' line under the preprocessor.svgdx
block:
[preprocessor.svgdx]
command = "cargo run --manifest-path /path/to/mdbook-svgdx/Cargo.toml --quiet"
In order to test changes to the svgdx
library itself, update the appropriate dependencies
entry of Cargo.toml of this (mdbook-svgdx) repo to point to a local clone of svgdx
,
rather than providing a version specifier:
svgdx = { path = "/path/to/svgdx", default-features = false }
This repository is released under the MIT license; for more information see the LICENSE file.