use mini_markdown::render; #[test] fn commonmark_test_62_atx_headings() { let test_html = render("# foo\n## foo\n### foo\n#### foo\n##### foo\n###### foo\n"); let reference_html = "

foo

\n

foo

\n

foo

\n

foo

\n
foo
\n
foo
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_63_atx_headings() { let test_html = render("####### foo\n"); let reference_html = "

####### foo

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_64_atx_headings() { let test_html = render("#5 bolt\n\n#hashtag\n"); let reference_html = "

#5 bolt

\n

#hashtag

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_65_atx_headings() { let test_html = render("\\## foo\n"); let reference_html = "

## foo

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_66_atx_headings() { let test_html = render("# foo *bar* \\*baz\\*\n"); let reference_html = "

foo bar *baz*

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_67_atx_headings() { let test_html = render("# foo \n"); let reference_html = "

foo

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_68_atx_headings() { let test_html = render(" ### foo\n ## foo\n # foo\n"); let reference_html = "

foo

\n

foo

\n

foo

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_69_atx_headings() { let test_html = render(" # foo\n"); let reference_html = "
# foo\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_70_atx_headings() { let test_html = render("foo\n # bar\n"); let reference_html = "

foo\n# bar

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_71_atx_headings() { let test_html = render("## foo ##\n ### bar ###\n"); let reference_html = "

foo

\n

bar

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_72_atx_headings() { let test_html = render("# foo ##################################\n##### foo ##\n"); let reference_html = "

foo

\n
foo
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_73_atx_headings() { let test_html = render("### foo ### \n"); let reference_html = "

foo

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_74_atx_headings() { let test_html = render("### foo ### b\n"); let reference_html = "

foo ### b

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_75_atx_headings() { let test_html = render("# foo#\n"); let reference_html = "

foo#

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_76_atx_headings() { let test_html = render("### foo \\###\n## foo #\\##\n# foo \\#\n"); let reference_html = "

foo ###

\n

foo ###

\n

foo #

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_77_atx_headings() { let test_html = render("****\n## foo\n****\n"); let reference_html = "
\n

foo

\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_78_atx_headings() { let test_html = render("Foo bar\n# baz\nBar foo\n"); let reference_html = "

Foo bar

\n

baz

\n

Bar foo

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_79_atx_headings() { let test_html = render("## \n#\n### ###\n"); let reference_html = "

\n

\n

\n"; assert_eq!(test_html, reference_html); }