private printdoc — function
printdoc(io, docstr)
This method prints out the parts of an individual Docs.DocStr object to the
given IO object io. It is used to get the “formatted” content of the
docstring without it being pre-parsed by the Markdown standard library.