mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 23:51:55 +08:00
[flutter_markdown] remove print statements when not handling alignment (#2499)
This commit is contained in:

committed by
GitHub

parent
483df53734
commit
6d2f192631
@ -1,3 +1,8 @@
|
||||
## 0.6.10+6
|
||||
|
||||
* Removes print logged when not handling hr for alignment.
|
||||
* Removes print logged when not handling li for alignment.
|
||||
|
||||
## 0.6.10+5
|
||||
|
||||
* Fixes lint warnings.
|
||||
|
@ -758,14 +758,8 @@ class MarkdownBuilder implements md.NodeVisitor {
|
||||
case 'pre':
|
||||
return styleSheet.codeblockAlign;
|
||||
case 'hr':
|
||||
// TODO(goderbauer): We shouldn't be printing here, https://github.com/flutter/flutter/issues/110209
|
||||
// ignore: avoid_print
|
||||
print('Markdown did not handle hr for alignment');
|
||||
break;
|
||||
case 'li':
|
||||
// TODO(goderbauer): We shouldn't be printing here, https://github.com/flutter/flutter/issues/110209
|
||||
// ignore: avoid_print
|
||||
print('Markdown did not handle li for alignment');
|
||||
break;
|
||||
}
|
||||
return WrapAlignment.start;
|
||||
|
@ -4,7 +4,7 @@ description: A Markdown renderer for Flutter. Create rich text output,
|
||||
formatted with simple Markdown tags.
|
||||
repository: https://github.com/flutter/packages/tree/main/packages/flutter_markdown
|
||||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_markdown%22
|
||||
version: 0.6.10+5
|
||||
version: 0.6.10+6
|
||||
|
||||
environment:
|
||||
sdk: ">=2.12.0 <3.0.0"
|
||||
|
Reference in New Issue
Block a user