Babelmark is a tool to compare the output of markdown implementations.
This repository is the source of https://dingus.passcod.nz, which provides Babelmark with various Rust-based markdown parsers/renderers.
- Clone this repo.
- Add the markdown crate to Cargo.toml.
- Create a render module named after the crate:
src/cratename.rs
:
use axum::response::Result;
pub async fn render(input: &str) -> Result<String> {
Ok(cratename::render_markdown_to_html_somehow(input))
}
- Add the implementation to the
main.rs
rendefers!
macro:
renderers! {
// ...
"crate_name", module_name, false, "https://github.com/example/repo"
}
crate_name
MUST be the exact name of the crate as per Cargo.tomlmodule_name
is the filename of the .rs created in step 3- the boolean indicates commonmark compliance
- the URL must be to the repo of the markdown implementation
- Submit a pull request!
- Once approved and deployed, go to https://dingus.passcod.nz/registry
- Submit your crate's new entry in the registry to https://github.com/babelmark/babelmark-registry