Closed GimazDo closed 1 month ago
Hi,
In Compose we have SpanStyle
so you after parsing HTML, h1 to h6 tags are converted to SpanStyle
.
Here's the SpanStyle
for each tag, you can copy this code and use it in your project:
internal val H1SpanStyle = SpanStyle(fontSize = 2.em, fontWeight = FontWeight.Bold)
state.toggleSpanStyle(H1SpanStyle)
At the moment I have only found support for inserting html code into richState. Is there any plan to support changing the current paragraph style? Like
state.toggleParagraphStyle( style = Header1 )