JetBrains / jewel

An implementation of the IntelliJ look and feels in Compose for Desktop
Apache License 2.0
636 stars 30 forks source link

Add Markdown styling to theme #367

Closed rock3r closed 2 months ago

rock3r commented 2 months ago

We were lacking a good, easy way to render Markdown, requiring a lot of ceremony. Now it's much easier, you just need to provide the styling, renderer, and processor as composition locals (with the defaults coming from ProvideMarkdownStyling). Then use either Markdown(), or LazyMarkdown(), and your content is displayed. Better!

I have updated the samples to show how it works.

[!IMPORTANT] Please don't merge until #365 and #366 have been merged