multiplatform-markdown-renderer icon indicating copy to clipboard operation
multiplatform-markdown-renderer copied to clipboard

[FEATURE REQUEST] Syntax highlighting

Open androidacy-user opened this issue 1 year ago • 2 comments

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.

androidacy-user avatar Mar 26 '24 21:03 androidacy-user

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 🤔

mikepenz avatar Mar 30 '24 13:03 mikepenz

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 😉 )

androidacy-user avatar Mar 31 '24 01:03 androidacy-user