markdown does not like being passed nil ;(
This commit is contained in:
parent
9541e0274c
commit
3c99418905
1
ldoc.lua
1
ldoc.lua
|
@ -543,6 +543,7 @@ if args.format ~= 'plain' then
|
|||
local ok,markup = pcall(require,args.format)
|
||||
if not ok then quit("cannot load formatter: "..args.format) end
|
||||
function ldoc.markup(txt)
|
||||
if txt == nil then return '' end
|
||||
txt = markup(txt)
|
||||
return (txt:gsub('^%s*<p>(.+)</p>%s*$','%1'))
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue