Skip to content

Please provide a way to set margins for block elements #125

@gazreese

Description

@gazreese

Migrated from flutter/flutter#81778
This issue was originally filed against the official flutter_markdown package.
The package has since been discontinued and ownership transferred to flutter_markdown_plus.


Please provide a way to set margins for block elements so that a H1 can have more spacing than a normal P. One way to achieve this would be a allow using a custom MarkdownBuilder which currently is hardcoded in _MarkdownWidgetState, the private "state sibling" of MarkdownWidget. The builder adds the blockSpacing in _addBlockChild which, if the tag would be passed to this function, could vary the added spacing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions