dartfmt markdown_test
diff --git a/pkgs/markdown/test/markdown_test.dart b/pkgs/markdown/test/markdown_test.dart index 6eb9fef..053e481 100644 --- a/pkgs/markdown/test/markdown_test.dart +++ b/pkgs/markdown/test/markdown_test.dart
@@ -18,30 +18,46 @@ group('Resolver', () { Node nyanResolver(String text) => new Text('~=[,,_${text}_,,]:3'); - validateCore('simple link resolver', ''' + validateCore( + 'simple link resolver', + ''' resolve [this] thing -''', ''' +''', + ''' <p>resolve ~=[,,_this_,,]:3 thing</p> -''', linkResolver: nyanResolver); +''', + linkResolver: nyanResolver); - validateCore('simple image resolver', ''' + validateCore( + 'simple image resolver', + ''' resolve ![this] thing -''', ''' +''', + ''' <p>resolve ~=[,,_this_,,]:3 thing</p> -''', imageLinkResolver: nyanResolver); +''', + imageLinkResolver: nyanResolver); - validateCore('can resolve link containing inline tags', ''' + validateCore( + 'can resolve link containing inline tags', + ''' resolve [*star* _underline_] thing -''', ''' +''', + ''' <p>resolve ~=[,,_*star* _underline__,,]:3 thing</p> -''', linkResolver: nyanResolver); +''', + linkResolver: nyanResolver); }); group('Custom inline syntax', () { var nyanSyntax = <InlineSyntax>[new TextSyntax('nyan', sub: '~=[,,_,,]:3')]; - validateCore('simple inline syntax', ''' -nyan''', '''<p>~=[,,_,,]:3</p> -''', inlineSyntaxes: nyanSyntax); + validateCore( + 'simple inline syntax', + ''' +nyan''', + '''<p>~=[,,_,,]:3</p> +''', + inlineSyntaxes: nyanSyntax); validateCore('dart custom links', 'links [are<foo>] awesome', '<p>links <a>are<foo></a> awesome</p>\n', @@ -54,50 +70,71 @@ }); group('Inline only', () { - validateCore('simple line', ''' + validateCore( + 'simple line', + ''' This would normally create a paragraph. ''', ''' This would normally create a paragraph. - ''', inlineOnly: true); - validateCore('strong and em', ''' + ''', + inlineOnly: true); + validateCore( + 'strong and em', + ''' This would _normally_ create a **paragraph**. ''', ''' This would <em>normally</em> create a <strong>paragraph</strong>. - ''', inlineOnly: true); - validateCore('link', ''' + ''', + inlineOnly: true); + validateCore( + 'link', + ''' This [link](http://www.example.com/) will work normally. ''', ''' This <a href="http://www.example.com/">link</a> will work normally. - ''', inlineOnly: true); - validateCore('references do not work', ''' + ''', + inlineOnly: true); + validateCore( + 'references do not work', + ''' [This][] shouldn't work, though. ''', ''' [This][] shouldn't work, though. - ''', inlineOnly: true); - validateCore('less than and ampersand are escaped', ''' + ''', + inlineOnly: true); + validateCore( + 'less than and ampersand are escaped', + ''' < & ''', ''' < & - ''', inlineOnly: true); - validateCore('keeps newlines', ''' + ''', + inlineOnly: true); + validateCore( + 'keeps newlines', + ''' This paragraph continues after a newline. ''', ''' This paragraph continues after a newline. - ''', inlineOnly: true); - validateCore('ignores block-level markdown syntax', ''' + ''', + inlineOnly: true); + validateCore( + 'ignores block-level markdown syntax', + ''' 1. This will not be an <ol>. ''', ''' 1. This will not be an <ol>. - ''', inlineOnly: true); + ''', + inlineOnly: true); }); testFile('extensions/fenced_code_blocks.unit',