diff --git a/asciidoc/runtime/src/main/java/io/quarkiverse/qute/web/asciidoc/runtime/AsciidocSectionHelperFactory.java b/asciidoc/runtime/src/main/java/io/quarkiverse/qute/web/asciidoc/runtime/AsciidocSectionHelperFactory.java index 9509f129..6ab49ef5 100644 --- a/asciidoc/runtime/src/main/java/io/quarkiverse/qute/web/asciidoc/runtime/AsciidocSectionHelperFactory.java +++ b/asciidoc/runtime/src/main/java/io/quarkiverse/qute/web/asciidoc/runtime/AsciidocSectionHelperFactory.java @@ -3,13 +3,7 @@ import java.util.List; import java.util.concurrent.CompletionStage; -import io.quarkus.qute.CompletedStage; -import io.quarkus.qute.EngineConfiguration; -import io.quarkus.qute.ResultNode; -import io.quarkus.qute.SectionHelper; -import io.quarkus.qute.SectionHelperFactory; -import io.quarkus.qute.SingleResultNode; -import io.quarkus.qute.TemplateExtension; +import io.quarkus.qute.*; @EngineConfiguration public class AsciidocSectionHelperFactory @@ -29,8 +23,8 @@ public AsciidocSectionHelper initialize(SectionInitContext context) { } @TemplateExtension(matchNames = { "asciidocify", "asciidocToHtml" }) - static String convertToAsciidoc(String text, String ignoredName) { - return CONVERTER.apply(text); + static RawString convertToAsciidoc(String text, String ignoredName) { + return new RawString(CONVERTER.apply(text)); } public static class AsciidocSectionHelper implements SectionHelper { diff --git a/markdown/runtime/src/main/java/io/quarkiverse/qute/web/markdown/runtime/MarkdownSectionHelperFactory.java b/markdown/runtime/src/main/java/io/quarkiverse/qute/web/markdown/runtime/MarkdownSectionHelperFactory.java index 4b2461b5..a4c05266 100644 --- a/markdown/runtime/src/main/java/io/quarkiverse/qute/web/markdown/runtime/MarkdownSectionHelperFactory.java +++ b/markdown/runtime/src/main/java/io/quarkiverse/qute/web/markdown/runtime/MarkdownSectionHelperFactory.java @@ -3,17 +3,11 @@ import java.util.List; import java.util.concurrent.CompletionStage; +import io.quarkus.qute.*; import jakarta.inject.Inject; import io.quarkus.arc.Arc; import io.quarkus.arc.impl.LazyValue; -import io.quarkus.qute.CompletedStage; -import io.quarkus.qute.EngineConfiguration; -import io.quarkus.qute.ResultNode; -import io.quarkus.qute.SectionHelper; -import io.quarkus.qute.SectionHelperFactory; -import io.quarkus.qute.SingleResultNode; -import io.quarkus.qute.TemplateExtension; @EngineConfiguration public class MarkdownSectionHelperFactory @@ -47,8 +41,8 @@ public MarkdownSectionHelper initialize(SectionInitContext context) { () -> Arc.container().instance(MdConverter.class).get()); @TemplateExtension(matchNames = { "markdownify", "mdToHtml" }) - static String convertToMarkdown(String text, String ignoredName) { - return CONVERTER.get().html(text); + static RawString convertToMarkdown(String text, String ignoredName) { + return new RawString(CONVERTER.get().html(text)); } public static class MarkdownSectionHelper implements SectionHelper {