need explicit 'extended_markdown' in config to do pre-processing. This feature is currently not working 100%

This commit is contained in:
steve donovan 2011-07-30 11:06:42 +02:00
parent 7fa4d6d9eb
commit 9b373e36aa
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)