summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex')
-rw-r--r--Master/texmf-dist/tex/luatex/markdown/markdown.lua20
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/luatex/markdown/markdown.lua b/Master/texmf-dist/tex/luatex/markdown/markdown.lua
index c1a4b631e4f..e2c7527b3fd 100644
--- a/Master/texmf-dist/tex/luatex/markdown/markdown.lua
+++ b/Master/texmf-dist/tex/luatex/markdown/markdown.lua
@@ -58,7 +58,7 @@
-- those in the standard .ins files.
--
local metadata = {
- version = "2.5.1",
+ version = "2.5.2",
comment = "A module for the conversion from markdown to plain TeX",
author = "John MacFarlane, Hans Hagen, Vít Novotný",
copyright = "2009-2017 John MacFarlane, Hans Hagen; " ..
@@ -777,7 +777,9 @@ parsers.letter = R("AZ","az")
parsers.alphanumeric = R("AZ","az","09")
parsers.keyword = parsers.letter
* parsers.alphanumeric^0
-parsers.internal_punctuation = S(":;,.#$%&-+?<>~/_")
+parsers.citation_chars = parsers.alphanumeric
+ + S("#$%&-+<>~/_")
+parsers.internal_punctuation = S(":;,.?")
parsers.doubleasterisks = P("**")
parsers.doubleunderscores = P("__")
@@ -1031,9 +1033,14 @@ parsers.localfilepath
* Cs(parsers.alphanumeric^1)
* Cc("localfile")
parsers.citation_name = Cs(parsers.dash^-1) * parsers.at
- * Cs(parsers.alphanumeric
- * (parsers.alphanumeric + parsers.internal_punctuation
- - parsers.comma - parsers.semicolon)^0)
+ * Cs(parsers.citation_chars
+ * (((parsers.citation_chars + parsers.internal_punctuation
+ - parsers.comma - parsers.semicolon)
+ * -#((parsers.internal_punctuation - parsers.comma
+ - parsers.semicolon)^0
+ * -(parsers.citation_chars + parsers.internal_punctuation
+ - parsers.comma - parsers.semicolon)))^0
+ * parsers.citation_chars)^-1)
parsers.citation_body_prenote
= Cs((parsers.alphanumeric^1
@@ -1055,7 +1062,8 @@ parsers.citation_body_postnote
parsers.citation_body_chunk
= parsers.citation_body_prenote
* parsers.spnl * parsers.citation_name
- * (parsers.comma * parsers.spnl)^-1
+ * ((parsers.internal_punctuation - parsers.semicolon)
+ * parsers.spnl)^-1
* parsers.citation_body_postnote
parsers.citation_body