summaryrefslogtreecommitdiff
path: root/mod/tex
diff options
context:
space:
mode:
authorPhilipp Gesang <gesang@stud.uni-heidelberg.de>2013-03-14 18:13:56 +0100
committerPhilipp Gesang <gesang@stud.uni-heidelberg.de>2013-03-14 18:13:56 +0100
commitb68f996efeb78845441c47e86841cd5272469106 (patch)
tree93c26600815dd1bdd7962c0e63a929ef4ea7bd67 /mod/tex
parent7a837554c4812a3bb605420fc711160faebd160c (diff)
downloadcontext-rst-b68f996efeb78845441c47e86841cd5272469106.tar.gz
map container directive to environment
see http://www.ntg.nl/pipermail/ntg-context/2013/071829.html for details (thanks aditya)
Diffstat (limited to 'mod/tex')
-rw-r--r--mod/tex/context/third/rst/rst_directives.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/mod/tex/context/third/rst/rst_directives.lua b/mod/tex/context/third/rst/rst_directives.lua
index f18e7cf..f143c56 100644
--- a/mod/tex/context/third/rst/rst_directives.lua
+++ b/mod/tex/context/third/rst/rst_directives.lua
@@ -316,13 +316,9 @@ rst_directives.container = function(data)
content = lpegmatch(inline_parser, content)
content = rst_context.escape(content)
return stringformat([[
-\ifcsname %s\endcsname%%
- \csname %s\endcsname%%
- {%s}%%
-\else
- {%s}%%
-\fi
-]], name, name, content, content)
+\start[%s]%%
+%s\stop
+]], name, content)
end
-- vim:ft=lua:sw=4:ts=4:expandtab