[Suggestion] Libify inlyne to make it an embeddable markdown viewer
Hey there!
Motivation
Imagine a world where we could embed inlyne into other applications, like e.g. (via a plugin) a bevy-engine game, or any other kind of (wgpu-based) application.
Necessities
What's necessary for that? Well, another API that we can hand a markdown file (byte content?) and take the result of the rendering and put it to a texture or something like that.
Maybe in the future we could even make the first part renderer-agnostic.
I am not yet deep enough into the codebase to know what exactly is necessary, so it's all a bit fuzzy, but I can't shake the feeling that this is something I really, really want... :)
All the rendering is completely dependent upon wgpu which I know has an ability to render to a texture, I think it's also shown in one of the offical examples. The difficult part would be making the markdown file interactive when placed inside another project, as it would basically be a rendered image of the markdown file.
Perhaps a nice start would be having the option to render the markdown files to a png as a CLI option. That could be would probably be easier to implement and start the framework for future ambitions.