From 9cd1852c1ad4c708f402d15aa08cc151a8d186cb Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Sat, 31 May 2025 08:57:59 -0400 Subject: [PATCH] Allow Documenter.RawNode through `@eval` Markdown backends may sanitize text to avoid HTML detection in Markdown objects, permitting raw nodes may prevent that. --- src/expander_pipeline.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/expander_pipeline.jl b/src/expander_pipeline.jl index 6d52a15052..e3bc35fbae 100644 --- a/src/expander_pipeline.jl +++ b/src/expander_pipeline.jl @@ -727,6 +727,8 @@ function Selectors.runner(::Type{Expanders.EvalBlocks}, node, page, doc) nothing elseif isa(result, Markdown.MD) convert(Node, result) + elseif isa(result, Documenter.RawNode) + Node(result) # wrap directly in a Node else # TODO: we could handle the cases where the user provides some of the Markdown library # objects, like Paragraph.