# Doc down related queries
module commands_docdown
-import commands::commands_html
-import commands::commands_md
+import commands_md
+import markdown
# Retrieve the MDoc summary
#
super CmdComment
# Markdown processor used to parse the headlines
- var markdown_processor: nullable MarkdownProcessor = null is optional, writable
+ var markdown_processor: MarkdownProcessor is writable
# Resulting summary
#
if not res isa CmdSuccess then return res
var mentity = self.mentity.as(not null)
- var markdown_processor = self.markdown_processor
- if markdown_processor == null then
- markdown_processor = new MarkdownProcessor
- self.markdown_processor = markdown_processor
- end
-
var mdoc = self.mdoc
if mdoc == null then
mdoc = if fallback then mentity.mdoc_or_fallback else mentity.mdoc