[flutter_markdown] remove print statements when not handling alignment (#2499)

This commit is contained in:
Alejandro Santiago
2022-09-12 20:04:50 +01:00
committed by GitHub
parent 483df53734
commit 6d2f192631
3 changed files with 6 additions and 7 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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"