From ce5cccb2cc736102fae936f6b0fd6a1eb8a70ba1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 25 Aug 2024 18:27:24 +0000 Subject: [PATCH 1/2] fix(deps): update dependency org.asciidoctor:asciidoctorj to v3 --- convert/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert/pom.xml b/convert/pom.xml index 18701e6..003cbea 100644 --- a/convert/pom.xml +++ b/convert/pom.xml @@ -13,7 +13,7 @@ 0.64.4 - 2.5.13 + 3.0.0 2.3.1 From 8418495b2b70fec428e6137b5a22c503c374dc7f Mon Sep 17 00:00:00 2001 From: Dmitry Pavlov Date: Sun, 22 Sep 2024 22:50:23 +0300 Subject: [PATCH 2/2] Fix initialization of asciidoc parser --- .../text2confl/convert/asciidoc/AsciidocParser.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/convert/src/main/kotlin/com/github/zeldigas/text2confl/convert/asciidoc/AsciidocParser.kt b/convert/src/main/kotlin/com/github/zeldigas/text2confl/convert/asciidoc/AsciidocParser.kt index 8a640f0..640a567 100644 --- a/convert/src/main/kotlin/com/github/zeldigas/text2confl/convert/asciidoc/AsciidocParser.kt +++ b/convert/src/main/kotlin/com/github/zeldigas/text2confl/convert/asciidoc/AsciidocParser.kt @@ -64,11 +64,10 @@ class AsciidocParser( ) + config.attributes + parameters.extraAttrs private fun htmlConversionOptions(attrs: Map) = parserOptions { - attributes( - Attributes.builder().attributes(attrs) - .sourceHighlighter("none") - .build() - ) + val a = Attributes.builder().build() + a.setAttributes(attrs) + a.setSourceHighlighter("none") + attributes(a) templateDirs(templatesLocation.toFile()) }