fallback troubleshooting code for now

This commit is contained in:
steve donovan 2011-12-06 19:20:17 +02:00
parent 70e1f22909
commit 69a952b76b
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ local function resolve_inline_references (ldoc, txt, item, plain)
if not plain then -- a nastiness with markdown.lua and underscores if not plain then -- a nastiness with markdown.lua and underscores
label = label:gsub('_','\\_') label = label:gsub('_','\\_')
end end
local res = ('<a href="%s">%s</a>'):format(ldoc.href(ref),label) local html = ldoc.href(ref) or '#'
label = label or '?que'
local res = ('<a href="%s">%s</a>'):format(html,label)
return res return res
end)) end))
return res return res