diff options
Diffstat (limited to 'rst_context.lua')
-rw-r--r-- | rst_context.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rst_context.lua b/rst_context.lua index 77e0966..f41fd6a 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -245,7 +245,7 @@ local corresponding = { local inline_parser = P{ [1] = "block", - block = Cs(V"inline_as_first"^-1 * (V"enclosed" + V"inline_element" + 1)^1), + block = Cs(V"inline_as_first"^-1 * (V"except" + V"inline_element" + 1)^1), inline_element = V"precede_inline" * Cs(V"inline_do_elements") @@ -257,6 +257,10 @@ local inline_parser = P{ -- formatted. inline_as_first = V"inline_do_elements" * V"succede_inline", + except = P"\\starttyping" * (1 - P"\\stoptyping")^1 * P"\\stoptyping" + + V"enclosed" + , + inline_do_elements = V"strong_emphasis" + V"substitution_reference" + V"anon_reference" |