Skip to content
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

Does not support float #45

Open
kuiperzone opened this issue Oct 12, 2023 · 8 comments
Open

Does not support float #45

kuiperzone opened this issue Oct 12, 2023 · 8 comments

Comments

@kuiperzone
Copy link

Just say'in.

@tkefauver
Copy link
Contributor

You could try to extend it you know. Also just saying :/

@kuiperzone
Copy link
Author

kuiperzone commented Mar 13, 2024

You could try to extend it you know. Also just saying :/

Hey. Thanks for the reply.

I tried out HtmlRenderer with the hope of using it. I raised the issues I found with the hope that they might be useful in the future devs, but they are not expectations or demands. I decided to find an alternative solution to HtmlRenderer for my purposes, but think it has a lot of potential.

@kuiperzone
Copy link
Author

Anyway, I think supporting the "float" in HTML would be a big ask.

@tkefauver
Copy link
Contributor

Whats the alternative? I agree it has potential!

@maxkatz6
Copy link
Member

Whats the alternative? I agree it has potential!

Any of the full and feature-complete browsers embedded into your app. See various WebView implementations for Avalonia. Like OutSystems WebView or DotNetBrowser.

Another alternative - to not use HTML.
Either XAML or maybe markdown?

@maxkatz6
Copy link
Member

Avalonia.HtmlRenderer is a great library to render simple formatted HTML, like changelogs, help dialogs or other rich text pages. But it's not a full standard implementation like your typical browser.

@tkefauver
Copy link
Contributor

Markdown.Avalonia looks interesting, hadn't seen that one before

@kuiperzone
Copy link
Author

kuiperzone commented Mar 13, 2024

I need to display styled content which is selectable and copiable (even if I just copy the plain text to the clipboard). This styled content mush include borders and padding and images etc. Converting my content to HTML was one way I was looking at doing it. Markdown was another, thu I think markdown will not cut it for me.

I'm now looking at using SelectableTextBox, though I will need to find a way to enable selection across multiple SelectableTextBox instances. I have a lot of work to do before then anyway, but was planning on posting or raising my implementation in case it may prove useful (assuming I can get it to work).

I also remain open to other solutions.

But it's not a full standard implementation like your typical browser.

The idea of a simple native renderer is great. But I would agree that there is no way it could possibly be a full implementation and one should not try (unless you wanted to commit your life to the task). Think it would be nice to fix a few issues and declare the things that it doesn't support (such as float) rather than have some poor soul (i.e. me) find out half way thru implementing something that depends on it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants