From 137a2995f45d8ff010b632c095378950c08db9cc Mon Sep 17 00:00:00 2001
From: Titus Wormer !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ \ \A\a\ \3\φ\« \ \A\a\ \3\φ\« *not emphasized*
@@ -233,20 +233,20 @@ bar
assert_eq!(
to_html_with_options(
- r"\\*emphasis*
-",
+ r###"\\*emphasis*
+"###,
&danger
)?,
- r" \emphasis \emphasis foo ## foo
not a tag
\[not a link](/foo)
\`not code`
@@ -215,7 +215,7 @@ bar
\# not a heading
\[foo]: /url "not a reference"
\ö not a character entity
-"#,
+"###,
&danger
)?,
r###"
@@ -257,98 +257,98 @@ bar\[\`\[\`\[\]
+ r###"
-",
+"###,
r###"Backslash escapes (18)"###
);
assert_eq!(
to_html_with_options(
- r"~~~
+ r###"~~~
\[\]
~~~
-",
+"###,
&danger
)?,
- r"\[\]
\[\]
+ r###"
-",
+"###,
r###"Backslash escapes (19)"###
);
assert_eq!(
to_html_with_options(
- r"\[\]
foo
+ r###"
-"#,
+"###,
r###"Backslash escapes (24)"###
);
@@ -430,36 +430,36 @@ foo
assert_eq!(
to_html_with_options(
- r#"
-"#,
+ r###"
+"###,
&danger
)?,
- r#"
-"#,
+ r###"
+"###,
r###"Entity and numeric character references (31)"###
);
assert_eq!(
to_html_with_options(
- r#"[foo](/föö "föö")
-"#,
+ r###"[foo](/föö "föö")
+"###,
&danger
)?,
- r#"
-"#,
+ r###"
+"###,
r###"Entity and numeric character references (32)"###
);
assert_eq!(
to_html_with_options(
- r#"[foo]
+ r###"[foo]
[foo]: /föö "föö"
-"#,
+"###,
&danger
)?,
- r#"
-"#,
+ r###"
+"###,
r###"Entity and numeric character references (33)"###
);
@@ -471,9 +471,9 @@ foo
"###,
&danger
)?,
- r#"foo
foo
+ r###"
-"#,
+"###,
r###"Entity and numeric character references (34)"###
);
@@ -886,8 +886,8 @@ bar
assert_eq!(
to_html_with_options(
- r"\## foo
-",
+ r###"\## foo
+"###,
&danger
)?,
r###"foo
foo bar *baz*
@@ -1018,10 +1018,10 @@ bar
assert_eq!(
to_html_with_options(
- r"### foo \###
+ r###"### foo \###
## foo #\##
# foo \#
-",
+"###,
&danger
)?,
r###"foo ###
@@ -1233,26 +1233,26 @@ Foo
assert_eq!(
to_html_with_options(
- r"Foo\
+ r###"Foo\
----
-",
+"###,
&danger
)?,
- r"Foo\
-",
+ r###"Foo\
+"###,
r###"Setext headings (90)"###
);
assert_eq!(
to_html_with_options(
- r#"`Foo
+ r###"`Foo
----
`
-"#,
+"###,
&danger
)?,
r###"`Foo
@@ -1414,9 +1414,9 @@ Baz
assert_eq!(
to_html_with_options(
- r"\> foo
+ r###"\> foo
------
-",
+"###,
&danger
)?,
r###"> foo
@@ -1479,11 +1479,11 @@ bar
Foo @@ -2065,11 +2065,11 @@ end "###, &danger )?, - r#"
def foo(x)
+ r###"def foo(x)
return 3
end
-"#,
+"###,
r###"Fenced code blocks (142)"###
);
@@ -2083,11 +2083,11 @@ end
"###,
&danger
)?,
- r#"def foo(x)
+ r###"def foo(x)
return 3
end
-"#,
+"###,
r###"Fenced code blocks (143)"###
);
@@ -2098,8 +2098,8 @@ end
"###,
&danger
)?,
- r#"
-"#,
+ r###"
+"###,
r###"Fenced code blocks (144)"###
);
@@ -2124,9 +2124,9 @@ foo
"###,
&danger
)?,
- r#"foo
+ r###"foo
-"#,
+"###,
r###"Fenced code blocks (146)"###
);
@@ -2222,48 +2222,48 @@ okay.
assert_eq!(
to_html_with_options(
- r#"
+ r###"
*Markdown*
-"#,
+"###,
&danger
)?,
- r#"
+ r###"
Markdown
-"#,
+"###,
r###"HTML blocks (152)"###
);
assert_eq!(
to_html_with_options(
- r#"
-"#,
+"###,
&danger
)?,
- r#"
-"#,
+"###,
r###"HTML blocks (153)"###
);
assert_eq!(
to_html_with_options(
- r#"
-"#,
+"###,
&danger
)?,
- r#"
-"#,
+"###,
r###"HTML blocks (154)"###
);
@@ -2285,14 +2285,14 @@ okay.
assert_eq!(
to_html_with_options(
- r#"
-"#,
+ r###"
+"###,
&danger
)?,
- r#"
-"#,
+ r###"
+"###,
r###"HTML blocks (159)"###
);
@@ -2367,16 +2367,16 @@ int x = 33;
assert_eq!(
to_html_with_options(
- r#"
+ r###"
*bar*
-"#,
+"###,
&danger
)?,
- r#"
+ r###"
*bar*
-"#,
+"###,
r###"HTML blocks (162)"###
);
@@ -2397,16 +2397,16 @@ int x = 33;
assert_eq!(
to_html_with_options(
- r#"
+ r###"
*bar*
-"#,
+"###,
&danger
)?,
- r#"
+ r###"
*bar*
-"#,
+"###,
r###"HTML blocks (164)"###
);
@@ -2468,45 +2468,45 @@ int x = 33;
assert_eq!(
to_html_with_options(
- r#"
+ r###"
import Text.HTML.TagSoup
main :: IO ()
main = print $ parseTags tags
okay
-"#,
+"###,
&danger
)?,
- r#"
+ r###"
import Text.HTML.TagSoup
main :: IO ()
main = print $ parseTags tags
okay
-"#,
+"###,
r###"HTML blocks (169)"###
);
assert_eq!(
to_html_with_options(
- r#"
okay
-"#,
+"###,
&danger
)?,
- r#"
okay
-"#,
+"###,
r###"HTML blocks (170)"###
);
@@ -2535,41 +2535,41 @@ _bar_
assert_eq!(
to_html_with_options(
- r#"
okay
-"#,
+"###,
&danger
)?,
- r#"
okay
-"#,
+"###,
r###"HTML blocks (172)"###
);
assert_eq!(
to_html_with_options(
- r#"