mikepenz / multiplatform-markdown-renderer

Markdown renderer for Kotlin Multiplatform Projects (Android, iOS, Desktop), using Compose.
https://mikepenz.github.io/multiplatform-markdown-renderer/
Apache License 2.0
339 stars 25 forks source link

[FEATURE REQUEST] Syntax highlighting #124

Open androidacy-user opened 3 months ago

androidacy-user commented 3 months ago

Hey 👋🏾

I was wondering if you would consider adding syntax highlighting for code blocks (perhaps on an opt-in basis?) to this library, using something like https://github.com/wingio/syntakts perhaps.

Thanks for your time.

mikepenz commented 3 months ago

Thank you for the suggestion. I think you should be able to already be able to do that, by adding a custom handling for the Code block.

Might be interesting to add an example for that, but I don't think that I plan to have it as a core part of the project at this time 🤔

androidacy-user commented 3 months ago

Honestly, I'm thinking that library would be more work than it's worth, but i really don't see any good compose syntax highlighters at all (and implementing our own from scratch probably is not worth the effort).

Not high priority and totally understand if you consider it out of scope (but an example would of course be appreciated too 😉 )