need explicit 'extended_markdown' in config to do pre-processing. This feature is currently not working 100%
This commit is contained in:
parent
7fa4d6d9eb
commit
9b373e36aa
2
ldoc.lua
2
ldoc.lua
|
@ -118,7 +118,7 @@ end
|
|||
local ldoc_contents = {
|
||||
'alias','add_language_extension','new_type','add_section',
|
||||
'file','project','title','package','format','output','dir','ext',
|
||||
'one','style','description','examples','readme','all'
|
||||
'one','style','description','examples','readme','all','extended_markdown'
|
||||
}
|
||||
ldoc_contents = tablex.makeset(ldoc_contents)
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ function markup.create (ldoc, format)
|
|||
processor = function (txt)
|
||||
if txt == nil then return '' end
|
||||
txt = resolve_inline_references(ldoc, txt)
|
||||
if txt:find '\n' and not ldoc.classic_markdown then -- multiline text
|
||||
if txt:find '\n' and ldoc.extended_markdown then -- multiline text
|
||||
txt = markup.insert_markdown_lines(txt)
|
||||
end
|
||||
txt = formatter (txt)
|
||||
|
|
Loading…
Reference in New Issue