Open matwachich opened 1 year ago
Hi I have to add a little This code will show flaws in Markdown implementation
package main
import (
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Fyne Markdown")
richText := widget.NewRichTextFromMarkdown(`
![image](appIcon.png)
## Look at Fyne Markdown implementation ##
---
Heading
=======
Sub-heading
-----------
# Alternative heading
## Alternative sub-heading
Paragraphs are separated
by a blank line.
Two spaces at the end of a line *here*
produce a line break.
---
*Created using [Fyne](https://fyne.io) GUI library*
*App icon design by [Icon8](https://icon8.com)*`)
w.SetContent(richText)
w.ShowAndRun()
}
run it and you'll get
My feature request #3810 is the same theme
Checklist
Describe the bug
According to markdown spec:
When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.
How to reproduce
Run the example
Screenshots
No response
Example code
Fyne version
2.3.2
Go compiler version
1.20
Operating system and version
Windows 10
Additional Information
No response