From b68f996efeb78845441c47e86841cd5272469106 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 14 Mar 2013 18:13:56 +0100 Subject: map container directive to environment see http://www.ntg.nl/pipermail/ntg-context/2013/071829.html for details (thanks aditya) --- mod/tex/context/third/rst/rst_directives.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'mod/tex/context/third') 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 -- cgit v1.2.3