jarontai / html2md

A library for converting HTML to Markdown in Dart. It supports CommonMark, simple table and custom converting rules. 将html转换为markdown的Dart库,支持CommonMark、简单表格以及自定义转换规则。
https://pub.dev/packages/html2md
BSD 2-Clause "Simplified" License
58 stars 25 forks source link

blockquote text style not applying #24

Closed lboedy closed 2 years ago

lboedy commented 2 years ago

When trying to apply a text style to a blockquote, I am not seeing anything change.

return MarkdownBody(
      styleSheet: MarkdownStyleSheet(
        blockquote: TextStyle(color: Colors.blue),
        blockquoteDecoration: BoxDecoration(
          border: Border(
            left: BorderSide(
              width: 2.0,
            ),
          ),
        ),
        blockquotePadding: const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
      ),
      data: convert('<blockquote>this is a blockquote</blockquote>'),
);

I see the padding & the decoration, but not the text style.

jarontai commented 2 years ago

Hi lboedy, html2md is just a conversion tool and doesn't participate rendering, I believe this is a issue realted to flutter_markdown.