feat: support line breaks

This commit is contained in:
PoiScript 2023-11-21 16:33:30 +08:00
parent 6598095a9f
commit 58dfb022c2
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
10 changed files with 199 additions and 60 deletions

View file

@ -166,3 +166,11 @@ fn table() {
@"<main><section><table><thead><tr></tr></thead><tbody><tr></tr></tbody><tbody><tr></tr></tbody></table></section></main>"
);
}
#[test]
fn line_break() {
insta::assert_debug_snapshot!(
Org::parse("aa\\\\\nbb").to_html(),
@r###""<main><section><p>aa<br/>bb</p></section></main>""###
);
}