@@ -223,24 +223,6 @@ test('Test markdown replacement for emails wrapped in bold/strikethrough/italic
223
223
expect ( parser . replace ( testInput ) ) . toBe ( result ) ;
224
224
} ) ;
225
225
226
- test ( 'Test markdown replacement for multiline email hyperlinks' , ( ) => {
227
- let testInput = '[test\ntest]([email protected] )' ;
228
- let result = '<a href="mailto:[email protected] ">test<br />test</a>' ;
229
- expect ( parser . replace ( testInput ) ) . toBe ( result ) ;
230
-
231
- testInput = '[test\n\n\n]([email protected] )' ;
232
- result = '<a href="mailto:[email protected] ">test</a>' ;
233
- expect ( parser . replace ( testInput ) ) . toBe ( result ) ;
234
-
235
- testInput = '[test\ntest](test.com)' ;
236
- result = '<a href="https://test.com" target="_blank" rel="noreferrer noopener">test<br />test</a>' ;
237
- expect ( parser . replace ( testInput ) ) . toBe ( result ) ;
238
-
239
-
240
- result = '<a href="mailto:[email protected] ">[email protected] </a>' ;
241
- expect ( parser . replace ( testInput ) ) . toBe ( result ) ;
242
- } ) ;
243
-
244
226
// Check emails within other markdown
245
227
test ( 'Test emails within other markdown' , ( ) => {
246
228
const testString =
@@ -1804,16 +1786,6 @@ test('Test link with header before the alias multiline text part', () => {
1804
1786
expect ( parser . replace ( testString ) ) . toBe ( resultString ) ;
1805
1787
} ) ;
1806
1788
1807
- test ( 'Test markdown replacement for quoted multiline links' , ( ) => {
1808
- let testString = `> exa\nmple.com` ;
1809
- let resultString = `<blockquote>exa</blockquote><a href="https://mple.com" target="_blank" rel="noreferrer noopener">mple.com</a>`
1810
- expect ( parser . replace ( testString ) ) . toBe ( resultString ) ;
1811
-
1812
- testString = `> [exa\nmple.com](https://example.com)` ;
1813
- resultString = `<blockquote><a href="https://example.com" target="_blank" rel="noreferrer noopener">exa<br />mple.com</a></blockquote>`
1814
- expect ( parser . replace ( testString ) ) . toBe ( resultString ) ;
1815
- } ) ;
1816
-
1817
1789
test ( 'Test nested link' , ( ) => {
1818
1790
let testString = `> example.com` ;
1819
1791
let resultString = `<blockquote><a href="https://example.com" target="_blank" rel="noreferrer noopener">example.com</a></blockquote>`
0 commit comments