I need a control that will allow displaying basic HTML generated from markdown. So very simplistic HTML: bold,italic,ol,ul,p,br. including IMG tag
I would like to see it happen, and I am willing to pay for it.
Any volonteer?
If the goal is to render markdown, it would probably be easier to render the markdown itself rather than the HTML. HTML has lots of formatting quirks, whereas markdown is more minimalist. The popular blackfriday markdown package exports a syntax tree that could be used to set up some object tree in fyne.
I also would like to see this happen - and agree with @jadr2ddude. In fact I had already bookmarked blackfriday to explore once the 1.0 release was out :)
The only problem with ignoring the HTML approach is that embedded markup won鈥檛 work correctly - but we could find a way to deal with that in the short term I am sure.
Then the next problem is to be able to calculate the widget size after render. You have to understand the fyne internals for that
That should not be problematic at all - by implementing the layout it will automatically know the correct widget size?
Either it will cause a full space to render all the components, or it can be put into a ScrollContainer which could be set to a more suitable size if you want to scroll.
Unless I misunderstood your concern about sizing?
Ok, that is usually the faced problem in such case. So this lib appear to be well designed ;-)
Let's hope so!
We will see where this comes in the planning for 1.1 next week
I think we can see our way to add this to the 1.1 milestone. It will, however, require additional work before it can be implemented:
This is quite a bit of work and so I don't imagine it would come in early - I imagine that 1.1 could take 3 months to complete, but it has not been fully planned yet.
I was considering setting up a bounty source / donation system to support Fyne development, if that were in place would you (@boussou ) consider donating with the specific aim of accelerating this feature? Looking at the complexity it is a pretty large item of work...
Oh, also - can we rename this "Markdown preview widget"? I'd like to steer clear of thinking about HTML rendering for a long time ;)
@andydotxyz Yep. I have to take time to create account etc.
Having this available would be awesome.
OK I'm going out on a limb and saying that 1.3 will have some more widgets and that this should be one of them :)
Depends upon #332, after that we should start work on it
Most helpful comment
If the goal is to render markdown, it would probably be easier to render the markdown itself rather than the HTML. HTML has lots of formatting quirks, whereas markdown is more minimalist. The popular blackfriday markdown package exports a syntax tree that could be used to set up some object tree in fyne.