From 0f1293fb46c51f499ce4d84f14f888911de6319d Mon Sep 17 00:00:00 2001 From: lxsang Date: Tue, 15 Sep 2020 10:29:39 +0200 Subject: [PATCH] add Youtube support on doc front end --- doc/controllers/doccontroller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/controllers/doccontroller.lua b/doc/controllers/doccontroller.lua index fcd1701..7895789 100644 --- a/doc/controllers/doccontroller.lua +++ b/doc/controllers/doccontroller.lua @@ -44,7 +44,7 @@ local post_process_md = function(str, obj) local pattern = capture:gsub("%[", "%%["):gsub("%]", "%%]") if apath then --apath = utils.urlencode(apath):gsub("%%", "%%%%") - content = str:gsub(pattern, + content = content:gsub(pattern, "") end end