Skip to content

<span>s whose parents are <li>s shouldn't be converted to <p>s #530

@Wevah

Description

@Wevah
  • Platform: Whatever Feedbin is using (tested on macOS 10.15.2 as well)
  • Mercury Parser Version: 2.2.x (git commit b0e708a)
  • Node Version (if a Node bug): 12.14.1
  • Browser Version (if a browser bug): N/A

Expected Behavior

span elements who are direct descendants of an li shouldn't be converted to p.

Current Behavior

span elements who are direct descendants of an li are converted to p.

Steps to Reproduce

Parsing https://lindenbergsoftware.com/en/notes/bringing-balinese-to-ios/index.html leads to this issue (see: Ranchero-Software/NetNewsWire#1739)

Detailed Description

It messes up the post formatting.

Possible Solution

Update the list of non-convertable parent elements to include li.

If leaving out li is intentional, I'd like to figure out another fix.

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