3
0
Fork 0
forked from mirrors/nixpkgs

doc: comment lua scripts

This commit is contained in:
Jan Tojnar 2021-07-12 04:44:46 +02:00
parent a49d36b979
commit df55fbb62a

View file

@ -1,3 +1,13 @@
--[[
Converts Link AST nodes with empty label to DocBook xref elements.
This is a temporary script to be able use cross-references conveniently
using syntax taken from MyST, while we still use docbook-xsl
for generating the documentation.
Reference: https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing
]]
local function starts_with(start, str)
return str:sub(1, #start) == start
end