Skip to content

Commit 81989a5

Browse files
committed
don't emit in raw nodes
1 parent dcf5662 commit 81989a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/writer.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,9 @@ render(io::IO, mime::MIME"text/plain", node::MarkdownAST.Node, ::Documenter.Setu
949949
# Raw nodes are used to insert raw HTML into the output. We just print it as is.
950950
# TODO: what if the `raw` is not HTML? That is not addressed here but we ought to address it...
951951
function render(io::IO, ::MIME"text/plain", node::Documenter.MarkdownAST.Node, raw::Documenter.RawNode, page, doc; kwargs...)
952+
if startswith(raw.text, "---")
953+
return # this was already handled by frontmatter.
954+
end
952955
return raw.name === :html ? println(io, raw.text, "\n") : nothing
953956
end
954957

0 commit comments

Comments
 (0)