Commit ae483706 authored by Tobias ferrari's avatar Tobias ferrari

added checkboxes in rst2latex

parent 69441cfd
......@@ -32,11 +32,11 @@ class RSTCheckBox(Directive):
html += "</ul>"
return [nodes.raw("", html, format="html")]
else:
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