summaryrefslogtreecommitdiff
path: root/mod/tex/context/third/rst/t-rst.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tex/context/third/rst/t-rst.mkiv')
-rw-r--r--mod/tex/context/third/rst/t-rst.mkiv12
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/tex/context/third/rst/t-rst.mkiv b/mod/tex/context/third/rst/t-rst.mkiv
index 0359335..0a3e25b 100644
--- a/mod/tex/context/third/rst/t-rst.mkiv
+++ b/mod/tex/context/third/rst/t-rst.mkiv
@@ -114,7 +114,17 @@
%D
%D \showsetup{typesetRSTfile}
-\def\typesetRSTfile#1{\ctxlua{thirddata.rst.do_rst_file("#1")}}
+\def\do_typesetRSTfile[#1]#2{%
+ \iffirstargument
+ \getparameters[RST][#1]%
+ \doifdefined{\RSTstripBOM}{\ctxlua{thirddata.rst.strip_BOM = "\RSTstripBOM"}}%
+ \fi
+ \ctxlua{thirddata.rst.do_rst_file("#2")}%
+}
+
+\def\typesetRSTfile{%
+ \dosingleempty\do_typesetRSTfile%
+}
%D \subsection{Typesetting Inline Snippets}
%D