Skip to content

Bug: Strikethrough Tags Not Correctly Rendered When Mixed with Emphasis and Order Changes #81735

@mjordan56

Description

@mjordan56

Describe the bug
NOTE: This is a bug in the parsing of the Markdown tags by the markdown package. See dart-lang/tools#1279.

The markdown package incorrectly parses Markdown strikethrough tags that are combined with other emphasis tags and the order of the tags changes. This seems to only happen when the inline Markdown tags are in the same text block.

How to reproduce
The following Markdown text:

**~~first~~** ~~**second**~~

Should produce:

first second

But the actual output is:

first ~~second~~

Additional context
This behavior happens with both bold and italic emphasis.

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.team-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