sb2md is a tool for converting Scrapbox to Markdown.
cargo install --git https://github.com/YuheiNakasaka/sb2md-rs --bin sb2md_cli
[dependencies]
sb2md_converter = { git = "https://github.com/YuheiNakasaka/sb2md-rs" }
sb2md_cli razokulover-tech-memo/scrapbox記法をmarkdownに変換するparserをrustで書く
use sb2md_converter::ToMd;
fn main() {
let text = "- this is a [* test]. In details, [https://example.com/ link] should be shown. [https://scrapbox.io/files/test.png]";
let md = ToMd::new(text.to_string()).convert();
println!("{}", md);
}