Skip to content

Bug: Library doesn't allow text as root element #81721

@wszeborowskimateusz

Description

@wszeborowskimateusz

How to reproduce
Steps to reproduce the behavior:
MarkdownBody(data: "full description <b> bold2</b> Next1 next line2 \n\n<p> center</p>test full")

Actual behavior
The following code renders as:
image

Expected behavior
I would expect to also see part with p tag as well (as plain text).

I have found out that the code that erases it is:
image

I don't understand why we cannot have text as child of the root element?

Aditional information
I am using version 0.5.0, however I can see the problematic code in the newest version as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectfound in release: 2.2Found to occur in 2.2found in release: 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: flutter_markdownflutter/packages flutter_markdownpackageflutter/packages repository. See also p: labels.r: invalidIssue is closed as not validteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy