The markdownify function calls asciidoctor

HI, I’m using the hugo v0.133.1+extended.

I have an issue with markdownify function calling asciidoctor as a rendering engine in a multiple markups environment, such as markdown and asciidoc.

I faced this issue when copying a file to another site which consists of many adoc files.

I prepared a github project to reproduce this issue.

My question is, is the markdownify function always expected to call in goldmark?
Or, should it be follow each context?

It causes the Markdownify function in transform.go using the top page object, Home(), as a markup rendering engine.

My following patch might be solve my issue, but it also causes side effects if somebody depends on the current behavior.

diff --git a/tpl/transform/transform.go b/tpl/transform/transform.go
index 843351702..d0699051b 100644
--- a/tpl/transform/transform.go
+++ b/tpl/transform/transform.go
@@ -177,7 +177,8 @@ func (ns *Namespace) Markdownify(ctx context.Context, s any) (template.HTML, err
        if home == nil {
                panic("home must not be nil")
        }
-       ss, err := home.RenderString(ctx, s)
+       renderOpts := map[string]any{ "Markup": "markdown", }
+       ss, err := home.RenderString(ctx, renderOpts, s)
        if err != nil {
                return "", err
        }

I hope the patch apply for the code.