Package list lua-ldoc / 3c72e9e
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 8 years ago
4 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
105105 <h3>Info:</h3>
106106 <ul>
107107 # 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>
109109 # end
110110 </ul>
111111 # end -- if module.info
4444 if ref then
4545 return ('<a href="%s">%s</a> '):format(ldoc.href(ref),name)
4646 else
47 return '`'..name..'`'
47 return '<code>'..name..'</code>'
4848 end
4949 end)
5050 end
280280 function markup.create (ldoc, format, pretty)
281281 local processor
282282 markup.plain = true
283 if format == 'backtick' then
284 ldoc.backtick_references = true
285 format = 'plain'
286 end
283287 backtick_references = ldoc.backtick_references
284288 global_context = ldoc.package and ldoc.package .. '.'
285289 prettify.set_prettifier(pretty)
5050 -x,--ext (default html) output file extension
5151 -c,--config (default config.ld) configuration name
5252 -i,--ignore ignore any 'no doc comment or no module' warnings
53 -X,--not_luadoc break LuaDoc compatibility. Descriptions may continue after tags.
5354 -D,--define (default none) set a flag to be used in config.ld
5455 -C,--colon use colon style
5556 -B,--boilerplate ignore first comment in source files
7676 return front_elem[PRIORITY_KEY], front_elem[VALUE_KEY]
7777 end
7878
79 --- construct a @{priority_queue}.
79 --- construct a `priority_queue`.
8080 -- @constructor
8181 make_priority_queue = function()
8282 --- @export