reqmd_ast 0.2.1

ast library interface for reqmd
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::parsing::ParseContext;

#[rstest::fixture]
pub fn post_widget_md() -> &'static str {
    include_str!("./fixtures/post-widgets.md")
}

#[rstest::fixture]
pub fn post_widget_parse_context(
    post_widget_md: &'static str,
) -> ParseContext<'static> {
    ParseContext::build(post_widget_md).unwrap()
}

#[rstest::fixture]
pub fn post_widget_http() -> &'static str {
    include_str!("./fixtures/post-widgets-http.txt")
}