fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
24.73k stars 1.37k forks source link

It would be awesome if RichTextFromMarkdown supported footnotes #5044

Open westarver opened 1 month ago

westarver commented 1 month ago

Checklist

Is your feature request related to a problem?

Not a bug, just a feature I would like to see implemented. After reading the source code for rendering md I can see why it would be difficult.

Is it possible to construct a solution with the existing API?

If there is I have not found it. I have searched and read the ParseMarkdown source files. The dendron VS Code extension renders my markdown perfectly so I know it is not a problem with malformed content. Also, it appears fyne does not support embedded HTML in markdown which is fairly easy to work around, so not too bad.

Describe the solution you'd like to see.

I just want to be able to use footnotes in my Markdown help text. I am currently showing the help in a dialog with a RichText widget. Btw, thanks for a great product! There is nothing like in the go world.

andydotxyz commented 1 month ago

I'm not familiar with footnotes, where in the markdown format spec is that described?

westarver commented 1 month ago

Footnotes are considered extended syntax and are not part of the original spec. Go to markdown guide for some quick and consise discussion of footnotes and other extended markdown features. For the founder of markdown John Gruber's site go to daringfireball. Thanks!