Markdown parser fork with extended syntax for personal use.
1use markdown::to_html;
2use pretty_assertions::assert_eq;
3
4#[test]
5fn text() {
6 assert_eq!(
7 to_html("hello $.;'there"),
8 "<p>hello $.;'there</p>",
9 "should support ascii text"
10 );
11
12 assert_eq!(
13 to_html("Foo χρῆν"),
14 "<p>Foo χρῆν</p>",
15 "should support unicode text"
16 );
17
18 assert_eq!(
19 to_html("Multiple spaces"),
20 "<p>Multiple spaces</p>",
21 "should preserve internal spaces verbatim"
22 );
23}