fix issue #80, backticks expand in copyright and other 'info' tags. format='backtick' (-f backtick) is like format='plain' but with implicit 'backtick_references=true'. -X is short for 'not_luadoc'
Steve Donovan
10 years ago
105 | 105 |
<h3>Info:</h3>
|
106 | 106 |
<ul>
|
107 | 107 |
# for tag, value in ldoc.pairs(module.info) do
|
108 | |
<li><strong>$(tag)</strong>: $(value)</li>
|
|
108 |
<li><strong>$(tag)</strong>: $(M(value,module))</li>
|
109 | 109 |
# end
|
110 | 110 |
</ul>
|
111 | 111 |
# end -- if module.info
|
44 | 44 |
if ref then
|
45 | 45 |
return ('<a href="%s">%s</a> '):format(ldoc.href(ref),name)
|
46 | 46 |
else
|
47 | |
return '`'..name..'`'
|
|
47 |
return '<code>'..name..'</code>'
|
48 | 48 |
end
|
49 | 49 |
end)
|
50 | 50 |
end
|
|
280 | 280 |
function markup.create (ldoc, format, pretty)
|
281 | 281 |
local processor
|
282 | 282 |
markup.plain = true
|
|
283 |
if format == 'backtick' then
|
|
284 |
ldoc.backtick_references = true
|
|
285 |
format = 'plain'
|
|
286 |
end
|
283 | 287 |
backtick_references = ldoc.backtick_references
|
284 | 288 |
global_context = ldoc.package and ldoc.package .. '.'
|
285 | 289 |
prettify.set_prettifier(pretty)
|
50 | 50 |
-x,--ext (default html) output file extension
|
51 | 51 |
-c,--config (default config.ld) configuration name
|
52 | 52 |
-i,--ignore ignore any 'no doc comment or no module' warnings
|
|
53 |
-X,--not_luadoc break LuaDoc compatibility. Descriptions may continue after tags.
|
53 | 54 |
-D,--define (default none) set a flag to be used in config.ld
|
54 | 55 |
-C,--colon use colon style
|
55 | 56 |
-B,--boilerplate ignore first comment in source files
|
76 | 76 |
return front_elem[PRIORITY_KEY], front_elem[VALUE_KEY]
|
77 | 77 |
end
|
78 | 78 |
|
79 | |
--- construct a @{priority_queue}.
|
|
79 |
--- construct a `priority_queue`.
|
80 | 80 |
-- @constructor
|
81 | 81 |
make_priority_queue = function()
|
82 | 82 |
--- @export
|