diff --git a/.gitignore b/.gitignore index 0592392..d2a6e69 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target .DS_Store +rusty-tags.vi diff --git a/src/html_process/tests.rs b/src/html_process/tests.rs index c2d4cd9..1bfa815 100644 --- a/src/html_process/tests.rs +++ b/src/html_process/tests.rs @@ -90,12 +90,12 @@ fn search_html_matches_on_multiple_terms() { #[test] fn search_html_highlight_does_nothing_when_there_are_no_matches() { let result = process_html( - r#"
Nobody likes maple in their apple flavoured Snapple. APPLE
"#, + "Nobody likes maple in their apple flavoured Snapple. APPLE
", None, Some("nonsense"), ) .to_string(); let expected = - r#"Nobody likes maple in their apple flavoured Snapple. APPLE
"#; + "Nobody likes maple in their apple flavoured Snapple. APPLE
"; assert_eq!(result, expected); } diff --git a/src/lib.rs b/src/lib.rs index fabd826..48347ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -175,11 +175,11 @@ hello you } ); - let markdown = r#" + let markdown = " ## Subheading Paragraph text. -"#; +"; let result = markdown_to_processed_html( markdown, @@ -204,11 +204,11 @@ Paragraph text. }, ); - let markdown = r#" + let markdown = " ### Subheading Link: [Example site](https://example.com). -"#; +"; let result = markdown_to_processed_html( markdown, @@ -219,9 +219,9 @@ Link: [Example site](https://example.com). }, ); let html = Some(String::from( - r##"Link: Example site.
-"##, +"#, )); assert_eq!( result, @@ -236,7 +236,7 @@ Link: [Example site](https://example.com). #[test] fn test_mjml_to_html() { - let mjml = r#"