gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.53k stars 318 forks source link

Wrong font size with blank bullet list #344

Open schwindt opened 2 months ago

schwindt commented 2 months ago

A blank bullet list leads to an incorrect font size.

Checklist

Steps to reproduce Explanation of how to reproduce the incorrect behavior. This could include an attached project, a link to code, or a Markdown-formatted text exhibiting the issue.

  1. try to preview this markdown string:
  2. "**Banana**:\n - oink", this one behaves correctly
  3. try this string: "**Banana**:\n - "
  4. In this case the word Banana will be written with much bigger font size

Expected behavior It should be the same font size

Screenshots

Bildschirmfoto 2024-08-22 um 14 46 06 Bildschirmfoto 2024-08-22 um 14 45 56

Version information