File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,19 @@ final HtmlEscape htmlEscape = const HtmlEscape(HtmlEscapeMode.element);
141
141
142
142
final List <md.InlineSyntax > _markdown_syntaxes = [
143
143
new _InlineCodeSyntax (),
144
- new _AutolinkWithoutScheme ()
145
- ]..addAll (md.ExtensionSet .gitHubWeb.inlineSyntaxes);
144
+ new _AutolinkWithoutScheme (),
145
+ md.InlineHtmlSyntax (),
146
+ md.StrikethroughSyntax (),
147
+ md.AutolinkExtensionSyntax (),
148
+ ];
149
+
150
+ final List <md.BlockSyntax > _markdown_block_syntaxes = [
151
+ const md.FencedCodeBlockSyntax (),
152
+ const md.HeaderWithIdSyntax (),
153
+ const md.SetextHeaderWithIdSyntax (),
154
+ const md.TableSyntax (),
146
155
147
- final List <md.BlockSyntax > _markdown_block_syntaxes = []
148
- ..addAll (md.ExtensionSet .gitHubWeb.blockSyntaxes);
156
+ ];
149
157
150
158
// Remove these schemas from the display text for hyperlinks.
151
159
final RegExp _hide_schemes = new RegExp ('^(http|https)://' );
Original file line number Diff line number Diff line change @@ -1340,6 +1340,16 @@ void main() {
1340
1340
'<tbody><tr><td><a href="fake/DocumentWithATable/foo-constant.html">foo</a></td>' ),
1341
1341
isTrue);
1342
1342
});
1343
+
1344
+ test ('Verify there is no emoji support' , () {
1345
+ TopLevelVariable tpvar = fakeLibrary.constants.firstWhere ((t) => t.name == 'hasMarkdownInDoc' );
1346
+ docsAsHtml = tpvar.documentationAsHtml;
1347
+ expect (
1348
+ docsAsHtml.contains (
1349
+ '3ffe:2a00:100:7031::1' ),
1350
+ isTrue);
1351
+ });
1352
+
1343
1353
});
1344
1354
1345
1355
group ('doc references' , () {
Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ export 'src/tool.dart';
70
70
// ignore: uri_does_not_exist
71
71
export 'package:test_package/fake.dart' ;
72
72
73
+ /// Does not render with emoji 3ffe:2a00:100:7031::1
74
+ const int hasMarkdownInDoc = 1 ;
75
+
73
76
abstract class ImplementingThingy implements BaseThingy {}
74
77
75
78
abstract class BaseThingy {
You can’t perform that action at this time.
0 commit comments