mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-02-22 10:12:47 +01:00
Merge pull request #26 from lxsang/master
fix local image rendering bug
This commit is contained in:
commit
cd30af6da4
@ -14,9 +14,8 @@ local pre_process_md = function(str, obj)
|
||||
if apath then
|
||||
apath = apath:gsub(" ", "%%%%20")
|
||||
print(apath)
|
||||
content = str:gsub(pattern,
|
||||
"")
|
||||
content = content:gsub(pattern, "")
|
||||
end
|
||||
end
|
||||
return content
|
||||
@ -33,7 +32,7 @@ local post_process_md = function(str, obj)
|
||||
if apath then
|
||||
-- apath = utils.urlencode(apath):gsub("%%", "%%%%")
|
||||
apath = apath:gsub(" ", "%%20")
|
||||
content = str:gsub(pattern,
|
||||
content = content:gsub(pattern,
|
||||
"<model-viewer src=\"" .. HTTP_ROOT .. "/" ..
|
||||
obj.name .. "/asset/" .. apath ..
|
||||
"\" auto-rotate camera-controls></model-viewer>")
|
||||
|
Loading…
x
Reference in New Issue
Block a user