From fdd863ed29e617f3fadaa906b2a5dfb02ea07c27 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 12 Mar 2013 19:01:53 +0100 Subject: escape processed inline elements --- mod/tex/context/third/rst/rst_directives.lua | 2 ++ 1 file changed, 2 insertions(+) (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 c5f0b68..5d8463e 100644 --- a/mod/tex/context/third/rst/rst_directives.lua +++ b/mod/tex/context/third/rst/rst_directives.lua @@ -308,8 +308,10 @@ rst_directives.container = function(data) for i=2, #data do tmp[#tmp+1] = data[i] end + -- content |> concat |> match |> escape content = tableconcat(tmp, " ") content = lpegmatch(inline_parser, content) + content = rst_context.escape(content) return stringformat([[ \ifcsname %s\endcsname%% \csname %s\endcsname%% -- cgit v1.2.3