==Heading==
`. let out = render("==Plain==\n"); assert!( out.contains( ""), "not a paragraph: {out2}");
}
#[test]
fn heading_keyword_renders_as_plain_text_not_badge() {
// `== TODO ==` is a section title, not an inline keyword: it must render as
// a normal header (with a correct, non-empty id), not a ``
// badge. Regression for the exported header losing its header styling + id.
let out = render("== TODO ==\n");
assert!(
out.contains(
" Hello world first second\
TODO
"));
}
#[test]
fn blockquote_lines_become_paragraphs() {
let out = render("> first\n> second\n");
assert!(out.contains(""));
assert!(out.contains("
tag (`{{{rust` →
// ``), with no inner
wrapper.
let out = render("{{{rust\nfn main() {}\n}}}\n");
assert!(out.contains(""), "got: {out}");
assert!(out.contains("fn main() {}"));
assert!(out.contains(""));
assert!(!out.contains("plain"), "got: {out}");
}
#[test]
fn preformatted_block_keeps_full_attr_string() {
let out = render("{{{class=\"brush: python\"\nx\n}}}\n");
assert!(out.contains(""), "got: {out}");
}
#[test]
fn math_block_emits_div() {
let out = render("{{$\nx=1\n}}$\n");
assert!(out.contains(""));
// vimwiki-compatible: class on the
"));
let inner_idx = out
.find("
\n
\n
"));
assert!(out.contains("nested"));
}
#[test]
fn definition_list() {
let out = render("Term:: Defn\n");
assert!(out.contains("
"));
assert!(out.contains("