diff --git a/src/ts/parser.ts b/src/ts/parser.ts index a4b35d8a..8347cae6 100644 --- a/src/ts/parser.ts +++ b/src/ts/parser.ts @@ -250,7 +250,7 @@ async function renderHighlightableMarkdown(data:string) { } -export const assetRegex = /{{(raw|img|image|video|audio|bg|emotion|asset|video-img|source)::(.+?)}}/g +export const assetRegex = /{{(raw|path|img|image|video|audio|bg|emotion|asset|video-img|source)::(.+?)}}/g async function parseAdditionalAssets(data:string, char:simpleCharacterArgument|character, mode:'normal'|'back', mode2:'unset'|'pre'|'post' = 'unset'){ const db = get(DataBase) @@ -319,6 +319,7 @@ async function parseAdditionalAssets(data:string, char:simpleCharacterArgument|c } switch(type){ case 'raw': + case 'path': return path.path case 'img': return `${path.path}`