Documenter.mdparse(md; mode=:single)
unexpectedly returns list
#2253
Labels
Documenter.mdparse(md; mode=:single)
unexpectedly returns list
#2253
Maybe I'm just misreading the documentation for
Documenter.mdparse
where it says that ":single
(default) – returns a single block-level object", but I'm finding the function to return a single-element list:For markdown with multiple blocks,
:single
throws an error (as documented).In principle, it would make the most sense to me if
mode=:single
were to return theParagraph()
node directly. On the other hand, I suppose always returning a list is more type stable. But then the documentation should be changed.I might want to use
mdparse
withmode=:single
in DocumenterCitations, so it would be good to clarify what the intended interface is.The text was updated successfully, but these errors were encountered: