-
Notifications
You must be signed in to change notification settings - Fork 18
Description
I am migrating from flutter_markdown and everything seems ok except for the styling of blockquotes.
When using flutter_markdown I only defined a blockquoteDecoration builder (i.e., I did not set the blockquote style explicitly), and the text inside the blockquote inherited the styles from the main document—the body used the paragraph style, headers used the respective h* style, etc. (notice how "EXTRA TIP" follows the style of "NERVES" and the body has the same style as the surrounding paragraphs):
Now, with flutter_markdown_plus without any changes to the stylesheet, the blockquote is using the theme's body style
| blockquote: theme.textTheme.bodyMedium, |
| Without setting blockquote style | With blockquote style |
|---|---|
![]() |
![]() |
Is this the expected behavior now?
If this is not expected, I'll write some code to reproduce the issue 👍; if this is expected behavior, is the solution to use a custom builder?
UPDATE: after some more trawling of the repo, I found the PR that changed this behavior: #2. This means it is indeed the new behavior (which IMO makes sense for the case where the style is explicitly defined). Therefore, my question is whether the only workaround is to define a custom builder., or would different behavior based on whether the blockquote style make sense?

