Add path cbs for intuition
This commit is contained in:
@@ -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'){
|
async function parseAdditionalAssets(data:string, char:simpleCharacterArgument|character, mode:'normal'|'back', mode2:'unset'|'pre'|'post' = 'unset'){
|
||||||
const db = get(DataBase)
|
const db = get(DataBase)
|
||||||
@@ -319,6 +319,7 @@ async function parseAdditionalAssets(data:string, char:simpleCharacterArgument|c
|
|||||||
}
|
}
|
||||||
switch(type){
|
switch(type){
|
||||||
case 'raw':
|
case 'raw':
|
||||||
|
case 'path':
|
||||||
return path.path
|
return path.path
|
||||||
case 'img':
|
case 'img':
|
||||||
return `<img src="${path.path}" alt="${path.path}" style="${assetWidthString} "/>`
|
return `<img src="${path.path}" alt="${path.path}" style="${assetWidthString} "/>`
|
||||||
|
|||||||
Reference in New Issue
Block a user