Internal file paths are now Markdown image paths
In the last commit, file paths were implemented to be the full path for the API, however that is not necessary. Before this change: /data/assets/filename.svg After: assets/filename.svg The new method is what SiYuan uses for Markdown images, like 
This commit is contained in:
parent
a2503d5def
commit
5e51589ffa
8 changed files with 66 additions and 14 deletions
|
@ -29,7 +29,7 @@ async function getFile(path) {
|
|||
|
||||
async function getSVG(path) {
|
||||
|
||||
const resp = await getFile(path);
|
||||
const resp = await getFile("/data/" + path);
|
||||
if(resp == null) {
|
||||
return FALLBACK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue