Skip to content

Commit

Permalink
Fix initialization of asciidoc parser
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldigas committed Sep 22, 2024
1 parent ce5cccb commit 8418495
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ class AsciidocParser(
) + config.attributes + parameters.extraAttrs

private fun htmlConversionOptions(attrs: Map<String, Any?>) = 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())
}

Expand Down

0 comments on commit 8418495

Please sign in to comment.