bares43 / MarkdownView

Native markdown rendering on top of Xamarin.Forms & Markdig.
MIT License
26 stars 6 forks source link

add support for .net maui and .net 7 #24

Open gsgou opened 1 year ago

kiddailey commented 2 months ago

Stumbled here from the original project and wanted to note that I've got a migration of this to MAUI/NET8. I think it warrants a new project altogether though and just trying to figure out where it should live.

Edit: I've pushed up the migration to my fork at https://github.com/kiddailey/MarkdownView/tree/MAUINET8 Note that it works but is very imperfect due to changes in how MAUI handles StackLayouts (among other things). I've got all of the changes to fix it up proper made and will post a link to that commit once I've got it up.

kiddailey commented 1 month ago

I've decided to refactor the entire method of theming that the library uses. Instead of code-based theming, I've implemented the theming using the styles framework of MAUI (and Xamarin before). This makes it really easy to change themes, gives a lot more control over how things look, completely separates the visual look from code, and removes a ton of code form the markdown process.

With the MAUI migration and this change, the library is now dramatically different from what it was, so I think it should probably be released under a new project (with credits to the originals, of course). I'll post further once I have completed it enough.