-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown preview widget #149
Comments
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’t 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? 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! |
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 |
I really want this happen! As the md file may contain html section so it’s would be great to render as html |
Sorry but we're not intending to support the HTML embedded rendering. |
Functionality is not complete, it will expand as RichText supports more. Fixes fyne-io#149
Now on develop for testing |
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?
The text was updated successfully, but these errors were encountered: