Skip to content

Commit

Permalink
fix(html): Fix missing bold style
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Sep 14, 2024
1 parent 8a5fc75 commit 53e84cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- 网页:修复解析`div`时布局错误的问题。
-初步处理, 现在某些情况下会多一些空行。
- 网页:修复折叠卡片的尾部多余的空行。
- 网页:修复粗体字样式丢失的问题。

### Changed

Expand Down
3 changes: 3 additions & 0 deletions lib/utils/html/html_muncher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,10 @@ final class _Muncher with LoggerMixin {
}
List<InlineSpan>? _buildB(uh.Element element) {
final origBold = state.bold;
state.bold = true;
final ret = _munch(element);
state.bold = origBold;
if (ret == null) {
return null;
}
Expand Down

0 comments on commit 53e84cf

Please sign in to comment.