From b616e2dde76b7424276b980785f08477815a52fd Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Fri, 9 Jul 2021 16:38:05 +0200 Subject: Add missing text styles in html (#2007) --- .../src/main/kotlin/renderers/html/HtmlRenderer.kt | 27 ++++++++++++++++++---- .../base/src/main/kotlin/renderers/html/Tags.kt | 10 ++++++++ 2 files changed, 33 insertions(+), 4 deletions(-) (limited to 'plugins/base/src/main/kotlin/renderers') diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 6d6f71fb..5a6f7c83 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -703,18 +703,37 @@ open class HtmlRenderer( } } - override fun FlowContent.buildText(textNode: ContentText) = + override fun FlowContent.buildText(textNode: ContentText) = buildText(textNode, textNode.style) + + private fun FlowContent.buildText(textNode: ContentText, unappliedStyles: Set