IffGit has a new shared runner for building Docker images in GitLab CI. Visit https://iffgit.fz-juelich.de/examples/ci-docker-in-docker for more details.

Commit ae483706 authored by Tobias ferrari's avatar Tobias ferrari
Browse files

added checkboxes in rst2latex

parent 69441cfd
......@@ -32,11 +32,11 @@ class RSTCheckBox(Directive):
html += "</ul>"
return [nodes.raw("", html, format="html")]
latex = "\\begin{itemize}\n"
latex = "\\begin{todolist}"
for line in lines:
if "- [ ]" in line:
latex += "\\item" + line[6:] + "\n"
elif "- [x]" in line:
latex += "\\item" + line[6:] + "\n"
latex += "\\end{itemize}"
latex += "\\item[\\checked]" + line[6:] + "\n"
latex += "\\end{todolist}"
return [nodes.raw("", latex, format="latex")]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment