pub fn render(input: &str) -> Result<String, PiktError>Expand description
Renders the given pikchr markup as SVG.
Use render_with if you want to change the default options.
ยงExample
use pikt::render;
let markup = r#"
circle "1"
move
circle "2"
arrow from first circle.end to last circle.start
"#;
let svg = render(markup);
assert!(svg.is_ok());