varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.46k stars 65 forks source link

Support inline html inside markdown #97

Closed bitspittle closed 2 years ago

bitspittle commented 2 years ago

Temporarily disabled this feature to simplify getting basic markdown features working, but it can be REALLY useful to add support for this so we can wrap parts of a markdown file with classnames, e.g.

<div class="tile">
## [This is some article title](/path/to/article/id)

This is some article short description
</div>

Note to self: KotlinRenderer and MarkdownComponents are where to start

bitspittle commented 2 years ago

So it turns out there's inline html and blocked html and they are handled differently.

I can add support for inline html for now - it's the more useful if all you want to do it tag a range of text with a special ID - but block html may be hard if not impossible. It gives you a HUGE chunk of raw html and I don't think I should be in the business of parsing it.

We'll find out what users actually need if more people start using Kobweb, and we can figure out next best steps from there. There may be simple workarounds for most cases where people think they need a block html using Kotlin code instead.