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

[Suggestion] Libify inlyne to make it an embeddable markdown viewer #51

Open
nerdachse opened this issue Oct 14, 2022 · 1 comment
Open
Labels
C-enhancement Category: New feature or request

Comments

@nerdachse
Copy link
Contributor

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... :)

@trimental
Copy link
Collaborator

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.

@CosmicHorrorDev CosmicHorrorDev added the C-enhancement Category: New feature or request label May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants