diff options
Diffstat (limited to 'rst_context.lua')
-rw-r--r-- | rst_context.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rst_context.lua b/rst_context.lua index 7d0ef28..ff3851d 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -323,6 +323,10 @@ end -- Field lists -------------------------------------------------------------------------------- +-- TODO Do something useful with field lists. For now I'm not sure what as the +-- bibliography directives from the reST specification seem to make sense only +-- when using docinfo and, after all, we have .bib files that are portable. + function rst_context.field_list (str) return [[ @@ -349,4 +353,17 @@ function rst_context.field (tab) ]], name, body) end +function rst_context.line_comment (str) + return "% " .. str +end + +function rst_context.block_comment (str) + return string.format([[ + +\iffalse +%s +\fi +]], str) +end + return rst_context |