summaryrefslogtreecommitdiff
path: root/rst_parser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rst_parser.lua')
-rw-r--r--rst_parser.lua13
1 files changed, 4 insertions, 9 deletions
diff --git a/rst_parser.lua b/rst_parser.lua
index d4ad90b..3d0bdd5 100644
--- a/rst_parser.lua
+++ b/rst_parser.lua
@@ -245,25 +245,23 @@ local parser = P{
footnote_block = V"footnote"^1 * V"end_block",
footnote = V"explicit_markup_start"
- * V"footnote_marker"
+ * (V"footnote_marker" + V"citation_reference_label")
* C(V"footnote_content")
* (V"blank_line" - V"end_block")^-1
- --* C(V"block")
/ rst.footnote
,
footnote_marker = V"lsquare" * C(V"footnote_label") * V"rsquare" * V"whitespace"^0
,
+ citation_reference_label = V"lsquare" * C(V"letter" * (1 - V"rsquare")^1) * V"rsquare" * V"whitespace"^0,
+
footnote_label = V"digit"^1
+ (V"gartenzaun" * V"letter"^1)
+ V"gartenzaun"
+ V"asterisk"
,
- --footnote_content = V"footnote_simple" -- single line
- --+ V"footnote_long"
-
footnote_content = V"footnote_long" -- single line
+ V"footnote_simple"
,
@@ -275,10 +273,6 @@ local parser = P{
* V"footnote_body"
,
- --footnote_body = V"fn_body_first"
- --* (V"fn_body_other" * (V"blank_line" * V"fn_body_other")^0)^0
- --,
-
footnote_body = V"fn_body_first"
* (V"fn_body_other" + V"fn_body_other_block")^0
,
@@ -1288,6 +1282,7 @@ local function get_setups ()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setupcolors[state=start]
\setupinteraction[state=start,color=darkgreen,contrastcolor=darkgreen]
+\setupbodyfontenvironment [default] [em=italic]
]]
for item, _ in next, state.addme do