You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on converting a different format into markdown, this method has been quite smooth as far as I can parse to AST correctly.
I was thinking that we could do a similar thing for HTML. Bonus point is that it'll make it easier to extend and support many markdown flavours and extensions. GFM is already covered.
This will likely be a breaking change since something like setting custom options will no longer work the same way.
If you think it makes sense I could work on it once I have less work on my hands.
The text was updated successfully, but these errors were encountered:
I just think that first converting into an intermediate format makes things cleaner and more reliable, it'll also eliminate a number of weird edge cases.
I have some experience working with goldmark so I know it is quite nicely designed and works pretty well.
I got the idea because I was converting from prosemirror to markdown and back and it works quite seamlessly. I think doing the same for HTML may provide cleaner results.
I've been thinking that perhaps we can use goldmark's AST as a middleground for converting HTML to MD.
net/html
I've been working on converting a different format into markdown, this method has been quite smooth as far as I can parse to AST correctly.
I was thinking that we could do a similar thing for HTML. Bonus point is that it'll make it easier to extend and support many markdown flavours and extensions. GFM is already covered.
This will likely be a breaking change since something like setting custom options will no longer work the same way.
If you think it makes sense I could work on it once I have less work on my hands.
The text was updated successfully, but these errors were encountered: