Index: render/html.lua ================================================================== --- render/html.lua +++ render/html.lua @@ -834,12 +834,12 @@ href = htmlURI(b.uri) elseif b.ref then href = idLink(b.ref, b) end local sp = sr.htmlSpan(b.spans, b, s) - return tag('div', {}, - catenate{tag('a',{class='link', href=href},sp)}) + return tag('a',{class='link', href=href}, + catenate{tag('div', {}, sp)}) end; table = function(b,s) local tb = {} for i, r in ipairs(b.rows) do local row = {}