ldoc
ldoc copied to clipboard
Render links to "builtin" names using <code>
trafficstars
builtin/globals.lua is nice, thank you.
@{require} yields the desired link to the Lua Reference Manual, but I'd like to render the function name "require" inside an HTML code element, so that it appears in a monospaced font (require), as it typically does in the Lua documentation.
However, as might be expected:
@{`requires`}
yields ??? and:
`@{requires}`
yields:
<a href="http://www.lua.org/manual/5.1/manual.html#pdf-require">require</a>
rendered inside a <code> element.
The following yields the desired result:
@{require|`require`}
but is more verbose than I'd like.
Your thoughts? (It's free; it works; what's the problem?)
One thing we could do is give those <a> tags a distinct class, and then you could style them to do anything you wish....