File tree 2 files changed +15
-25
lines changed
crates/crates_io_markdown
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!
676
676
#[ test]
677
677
fn markdown_alerts ( ) {
678
678
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## "
680
680
<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>
683
683
</div>
684
- "# ) ;
684
+ "## ) ;
685
685
}
686
686
687
687
#[ test]
688
- fn markdown_multiline_block_quotes_complex ( ) {
688
+ fn multiline_block_quotes ( ) {
689
689
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
+ "# # ) ;
700
700
}
701
701
}
Original file line number Diff line number Diff line change @@ -121,16 +121,6 @@ module('Acceptance | README rendering', function (hooks) {
121
121
assert . dom ( '[data-test-readme] pre > code.language-rust.hljs' ) . exists ( { count : 2 } ) ;
122
122
assert . dom ( '[data-test-readme] pre > code.language-mermaid svg' ) . exists ( ) ;
123
123
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
-
134
124
await percySnapshot ( assert ) ;
135
125
} ) ;
136
126
You can’t perform that action at this time.
0 commit comments