File tree Expand file tree Collapse file tree 2 files changed +404
-403
lines changed Expand file tree Collapse file tree 2 files changed +404
-403
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22import 'package:flutter_markdown/flutter_markdown.dart' ;
33import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart' ;
44import 'package:gsy_github_app_flutter/common/utils/CommonUtils.dart' ;
5- import 'package:gsy_github_app_flutter/widget/syntax_highlighter .dart' ;
5+ import 'package:gsy_github_app_flutter/widget/SyntaxHighLighter .dart' ;
66
77/**
88 * 代码详情
@@ -189,7 +189,8 @@ class GSYMarkdownWidget extends StatelessWidget {
189189class GSYHighlighter extends SyntaxHighlighter {
190190 @override
191191 TextSpan format (String source) {
192- print (source);
193- return new DartSyntaxHighlighter ().format (source);
192+ String showSource = source.replaceAll ("<" , "<" );
193+ showSource = showSource.replaceAll (">" , ">" );
194+ return new DartSyntaxHighlighter ().format (showSource);
194195 }
195196}
You can’t perform that action at this time.
0 commit comments