markdown-ppp 2.9.2

Feature-rich Markdown Parsing and Pretty-Printing library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ast::*;
use crate::parser::{parse_markdown, MarkdownParserState};

#[test]
fn thematic_break() {
    let doc = parse_markdown(MarkdownParserState::default(), "---").unwrap();
    assert_eq!(
        doc,
        Document {
            blocks: vec![Block::ThematicBreak]
        }
    );
}