Skip to content
Snippets Groups Projects

contributing: Fix lua stript

Merged Andrei Gherzan requested to merge agherzan/docs:ag/fixes-contributing into main
3 files
+ 73
50
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -8,9 +8,8 @@
@@ -8,9 +8,8 @@
-- tool. This is needed when converting a set of reST documents to a markdown
-- tool. This is needed when converting a set of reST documents to a markdown
-- one where directives like `toctree` and `contents` are not supported and end
-- one where directives like `toctree` and `contents` are not supported and end
-- up translated literally.
-- up translated literally.
function Div(el)
function Div(div)
local class = el["c"][1][2][1]
if div.classes:includes('toctree') or div.classes:includes('contents') then
if class == "toctree" or class == "contents" then
return {}
return {}
else
else
return nil
return nil
Loading