diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-29 22:23:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-29 22:23:07 +0000 |
commit | f73d138cf7df8989e3e97d47731a4ca4754fd399 (patch) | |
tree | dead022a022ef3871135069d40aeac5077ea111a /Master/texmf-dist/tex/luatex/markdown | |
parent | a64b4791da7a1ea0fb4652e5a729eac97378f936 (diff) |
markdown (29apr17)
git-svn-id: svn://tug.org/texlive/trunk@44118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/markdown')
-rw-r--r-- | Master/texmf-dist/tex/luatex/markdown/markdown.lua | 20 |
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 |