Skip to content

Comments

internal/runtime: fix Markdown conversion on macro return#993

Open
gazerro wants to merge 1 commit intomainfrom
macro-return-markdown-conversion
Open

internal/runtime: fix Markdown conversion on macro return#993
gazerro wants to merge 1 commit intomainfrom
macro-return-markdown-conversion

Conversation

@gazerro
Copy link
Member

@gazerro gazerro commented Feb 21, 2026

internal/runtime: fix Markdown conversion on macro return

Previously Markdown-to-HTML conversion after macro calls wrongly used
the caller format instead of the macro format. This caused Markdown
macro output to be lost in HTML contexts.

This commit aligna macro return conversion with call-time semantics so 
conversion is driven by the called macro format, and add regression
tests for direct and indirect Markdown macro calls from HTML templates.

Previously Markdown-to-HTML conversion after macro calls wrongly used
the caller format instead of the macro format. This caused Markdown
macro output to be lost in HTML contexts.

This commit aligna macro return conversion with call-time semantics so
conversion is driven by the called macro format, and add regression
tests for direct and indirect Markdown macro calls from HTML templates.
@gazerro gazerro requested a review from zapateo February 21, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant