mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-17 06:09:50 +02:00
add Youtube support on doc front end
This commit is contained in:
@ -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,
|
||||
"<iframe width=\"100%\" src=\"https://www.youtube.com/embed/"..apath.."\"> </iframe>")
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user