Skip to content

Commit

Permalink
fix: the text color doesn't apply to the heading block
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Dec 27, 2024
1 parent 818b67d commit 1b90015
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ HeadingBlockComponentBuilder _buildHeadingBlockComponentBuilder(
) {
return HeadingBlockComponentBuilder(
configuration: configuration.copyWith(
textStyle: (node) => _buildTextStyleInTableCell(
context,
node: node,
configuration: configuration,
),
padding: (node) {
if (customHeadingPadding != null) {
return customHeadingPadding;
Expand Down Expand Up @@ -567,7 +572,9 @@ HeadingBlockComponentBuilder _buildHeadingBlockComponentBuilder(
configuration: configuration,
),
),
textStyleBuilder: (level) => styleCustomizer.headingStyleBuilder(level),
textStyleBuilder: (level) {
return styleCustomizer.headingStyleBuilder(level);
},
);
}

Expand Down

0 comments on commit 1b90015

Please sign in to comment.