let text = "<ruby>同<rt>どう</ruby>ぜず。";
println!("{:#?}", ruby(text));//will print out the ast
Ok(
(
"",
Ruby {
ruby_text: RubyText {
kanji: "同",
annotation: "どう",
},
base_text: "ぜず。",
},
),
)
let ruby = RubyElement::new(
RubyElement::RubyText("同".to_string(), "どう".to_string()),
"ぜず。".to_string(),
);
ruby.to_string();
<ruby>同<rt>どう</ruby>ぜず。