Index: utils/markdown/test/markdown_tests.dart |
diff --git a/utils/markdown/test/markdown_tests.dart b/utils/markdown/test/markdown_tests.dart |
index 10e5b9e25ba2fe9cba6bce5f42c73e240eb600cf..33d643de7785b7ced77539491f00465767c5f9c1 100644 |
--- a/utils/markdown/test/markdown_tests.dart |
+++ b/utils/markdown/test/markdown_tests.dart |
@@ -603,6 +603,14 @@ void main() { |
<p>before <code>`tick`</code> after</p> |
'''); |
+ validate('multiline double backticks with spaces', ''' |
+ before ``in `tick` |
+ another`` after |
+ ''', ''' |
+ <p>before <code>in `tick` |
+ another</code> after</p> |
+ '''); |
+ |
validate('ignore markup inside code', ''' |
before `*b* _c_` after |
''', ''' |
@@ -614,6 +622,12 @@ void main() { |
''', ''' |
<p><code><&></code></p> |
'''); |
+ |
+ validate('escape HTML tags', ''' |
+ '*' `<em>` |
+ ''', ''' |
+ <p>'*' <code><em></code></p> |
+ '''); |
}); |
group('HTML encoding', () { |
@@ -688,6 +702,11 @@ void main() { |
''', ''' |
<p>links <a href="http://foo.com"><em>are</em></a> awesome</p> |
'''); |
+ validate('inline styles after a bad link are processed', ''' |
+ [bad] `code` |
+ ''', ''' |
+ <p>[bad] <code>code</code></p> |
+ '''); |
}); |
group('Inline links', () { |