@@ -163,23 +163,23 @@ final RegExp operatorPrefix = RegExp(r'^operator[ ]*');
163
163
164
164
final HtmlEscape htmlEscape = const HtmlEscape (HtmlEscapeMode .element);
165
165
166
- final List <md.InlineSyntax > _markdown_syntaxes = [
166
+ final List <md.InlineSyntax > _markdownSyntaxes = [
167
167
_InlineCodeSyntax (),
168
168
_AutolinkWithoutScheme (),
169
169
md.InlineHtmlSyntax (),
170
170
md.StrikethroughSyntax (),
171
171
md.AutolinkExtensionSyntax (),
172
172
];
173
173
174
- final List <md.BlockSyntax > _markdown_block_syntaxes = [
174
+ final List <md.BlockSyntax > _markdownBlockSyntaxes = [
175
175
const md.FencedCodeBlockSyntax (),
176
176
const md.HeaderWithIdSyntax (),
177
177
const md.SetextHeaderWithIdSyntax (),
178
178
const md.TableSyntax (),
179
179
];
180
180
181
181
// Remove these schemas from the display text for hyperlinks.
182
- final RegExp _hide_schemes = RegExp ('^(http|https)://' );
182
+ final RegExp _hideSchemes = RegExp ('^(http|https)://' );
183
183
184
184
class MatchingLinkResult {
185
185
final ModelElement element;
@@ -951,8 +951,8 @@ class MarkdownDocument extends md.Document {
951
951
}
952
952
953
953
return MarkdownDocument (
954
- inlineSyntaxes: _markdown_syntaxes ,
955
- blockSyntaxes: _markdown_block_syntaxes ,
954
+ inlineSyntaxes: _markdownSyntaxes ,
955
+ blockSyntaxes: _markdownBlockSyntaxes ,
956
956
linkResolver: linkResolver);
957
957
}
958
958
@@ -1020,7 +1020,7 @@ class _AutolinkWithoutScheme extends md.AutolinkSyntax {
1020
1020
@override
1021
1021
bool onMatch (md.InlineParser parser, Match match) {
1022
1022
var url = match[1 ];
1023
- var text = htmlEscape.convert (url).replaceFirst (_hide_schemes , '' );
1023
+ var text = htmlEscape.convert (url).replaceFirst (_hideSchemes , '' );
1024
1024
var anchor = md.Element .text ('a' , text);
1025
1025
anchor.attributes['href' ] = url;
1026
1026
parser.addNode (anchor);
0 commit comments