File tree Expand file tree Collapse file tree 2 files changed +15
-25
lines changed
crates/crates_io_markdown Expand file tree Collapse file tree 2 files changed +15
-25
lines changed Original file line number Diff line number Diff line change @@ -676,26 +676,26 @@ There can also be some text in between!
676676 #[ test]
677677 fn markdown_alerts ( ) {
678678 let text = "> [!note]\n > Something of note" ;
679- assert_snapshot ! ( markdown_to_html( text, None , "" ) , @r#"
679+ assert_snapshot ! ( markdown_to_html( text, None , "" ) , @r## "
680680 <div class="markdown-alert markdown-alert-note">
681- <p class="markdown-alert-title">Note</p>
682- <p>Something of note</p>
681+ <p class="markdown-alert-title">Note</p>
682+ <p>Something of note</p>
683683 </div>
684- "# ) ;
684+ "## ) ;
685685 }
686686
687687 #[ test]
688- fn markdown_multiline_block_quotes_complex ( ) {
688+ fn multiline_block_quotes ( ) {
689689 let text = "Paragraph one\n \n >>>\n Paragraph two\n \n - one\n - two\n >>>" ;
690- assert_snapshot ! ( markdown_to_html( text, None , "" ) , @r#"
691- <p>Paragraph one</p>
692- <blockquote>
693- <p>Paragraph two</p>
694- <ul>
695- <li>one</li>
696- <li>two</li>
697- </ul>
698- </blockquote>
699- " # ) ;
690+ assert_snapshot ! ( markdown_to_html( text, None , "" ) , @r## "
691+ <p>Paragraph one</p>
692+ <blockquote>
693+ <p>Paragraph two</p>
694+ <ul>
695+ <li>one</li>
696+ <li>two</li>
697+ </ul>
698+ </blockquote>
699+ "# # ) ;
700700 }
701701}
Original file line number Diff line number Diff line change @@ -121,16 +121,6 @@ module('Acceptance | README rendering', function (hooks) {
121121 assert . dom ( '[data-test-readme] pre > code.language-rust.hljs' ) . exists ( { count : 2 } ) ;
122122 assert . dom ( '[data-test-readme] pre > code.language-mermaid svg' ) . exists ( ) ;
123123
124- assert . dom ( '[data-test-readme] h3' ) . includesText ( 'GitHub Style Alert' ) ;
125- assert . dom ( '[data-test-readme] .markdown-alert.markdown-alert-note' ) . exists ( ) ;
126- assert . dom ( '[data-test-readme] .markdown-alert .markdown-alert-title' ) . hasText ( 'Note' ) ;
127- assert . dom ( '[data-test-readme] .markdown-alert p:nth-of-type(2)' ) . hasText ( 'Something of note' ) ;
128-
129- assert . dom ( '[data-test-readme] h3' ) . includesText ( 'GitLab Style Multiline Block Quotes' ) ;
130- assert . dom ( '[data-test-readme] blockquote' ) . exists ( ) ;
131- assert . dom ( '[data-test-readme] blockquote p' ) . hasText ( 'Paragraph two' ) ;
132- assert . dom ( '[data-test-readme] blockquote ul > li' ) . exists ( { count : 2 } ) ;
133-
134124 await percySnapshot ( assert ) ;
135125 } ) ;
136126
You can’t perform that action at this time.
0 commit comments