panache 2.35.0

An LSP, formatter, and linter for Pandoc markdown, Quarto, and RMarkdown
1
2
3
4
5
6
7
8
9
10
11
use panache::format;

#[test]
fn front_matter_and_paragraph() {
    let input = "---\ntitle: hi\n---\n\nHello world\n";
    let output = format(input, None, None);

    // Basic roundtrip test - the exact formatting might change
    assert!(output.contains("title: hi"));
    assert!(output.contains("Hello world"));
}