ldoc icon indicating copy to clipboard operation
ldoc copied to clipboard

Render links to "builtin" names using <code>

Open GrahamHannington opened this issue 11 years ago • 1 comments
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?)

GrahamHannington avatar Sep 09 '14 05:09 GrahamHannington

One thing we could do is give those <a> tags a distinct class, and then you could style them to do anything you wish....

stevedonovan avatar Jun 27 '16 17:06 stevedonovan