From e1a428607ec67fd283d732dbda30128feeabaaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Star=C3=BD=20Novotn=C3=BD?= Date: Fri, 25 Aug 2023 18:58:44 +0200 Subject: [PATCH] Remove needless repetition of `parsers.attrid` --- lunamark/reader/markdown.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lunamark/reader/markdown.lua b/lunamark/reader/markdown.lua index aabbb94e6..f35fb5579 100644 --- a/lunamark/reader/markdown.lua +++ b/lunamark/reader/markdown.lua @@ -164,7 +164,7 @@ parsers.attrvalue = (parsers.dquote * parsers.squote) + C((parsers.anyescaped - parsers.dquote - parsers.space - P("}"))^1) -parsers.attrpair = Cg(C((parsers.attrid)^1) +parsers.attrpair = Cg(C(parsers.attrid) * parsers.optionalspace * parsers.equal * parsers.optionalspace * parsers.attrvalue) * parsers.optionalspace^-1