at-doc return type depends on whether REPL is loaded #55438
Labels
bug
Indicates an unexpected problem or unintended behavior
docsystem
The documentation building system
regression
Regression in behavior compared to a previous version
Normally, the
@doc
macro returns aMarkdown.MD
object:% julia -e "println(typeof(@doc Real))" Markdown.MD
However, in nightly (1.12.0-DEV.1030) the return type is
Base.Docs.DocStr
unless theREPL
module is imported:This seems like a bug — I noticed it because of a test failure JuliaIO/StructIO.jl#30 in the StructIO.jl package (since package tests do not load the REPL module by default, a test for a documentation string was failing).
The text was updated successfully, but these errors were encountered: