From e7e1fca3bf04441141b8a13e22f1e06accf79009 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 3 Mar 2021 15:43:00 +0100 Subject: [PATCH] Pass trough entity references into markdown In order to allow e.g. &xepnnnn; references in text. --- tools/2xep.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/2xep.lua b/tools/2xep.lua index 85db6756..3ca9ed37 100644 --- a/tools/2xep.lua +++ b/tools/2xep.lua @@ -139,6 +139,7 @@ end -- Comments indicate the types of other variables. function Str(s) + if string.match(s, "^&[%w%-.]+;$") then return s; end return escape(s) end