#5110·fyne

RichText rendered from markdown renders an extra space after underscore (MacOS)

Author: GysCreated Sep 4, 2024Updated Sep 3, 2026
Labelsbug

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

Using RichText ParseMarkdown() the widget renders an extra space after an underscore. See the screenshot below.

How to reproduce

Parse for example the string under_score as markdown with a richttext widget. I use https://github.com/treysarkar/MarkDown-Editor for experimenting with Fyne markdown renderings and made the screenshot below.

Screenshots

Screenshot 2024-09-04 at 11 17 33

Example code

The is no example code.

Fyne version

2.5.1

Go compiler version

go1.21.5 darwin/amd64

Operating system and version

MacOS Sonoma 14.5 (Intel)

Additional Information

No response