summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/rst_context.lua b/rst_context.lua
index 40dd719..e6c20ee 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -277,4 +277,39 @@ function rst_context.bullet_item (str)
]]
end
+--------------------------------------------------------------------------------
+-- Definition lists
+--------------------------------------------------------------------------------
+-- TODO define proper setups (probably bnf-like and some narrower for def-paragraphs)
+
+function rst_context.deflist (str)
+ return [[
+
+\\startdefinitionlist
+]] .. str .. [[
+
+\\stopdefinitionlist
+]]
+end
+
+function rst_context.deflist_item (str)
+ return [[\\definitionitem{%]] .. str .. [[}]]
+end
+
+function rst_context.deflist_classifier (str)
+ return [[\\definitionclassifier{]] .. str .. [[}]]
+end
+
+function rst_context.deflist_term (str)
+ return [[
+
+ \\definitionterm{]] .. str .. [[}]]
+end
+
+function rst_context.deflist_def (str)
+ return [[
+
+ \\definitiondef{%]] .. str .. [[}]]
+end
+
return rst_context