This commit is contained in:
undefined committed 2022-10-18 22:32:30 +08:00
1 parent c2f63c80e1
commit e027b74f2d
6 files changed
+7 -7

No files matched your search

@@ -109,7 +109,7 @@ export function Media(md: MarkdownIt) {
`;
}
if (service === 'pdf') {
if (src.startsWith('file://')) src += src.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
if (src.startsWith('file://') || src.startsWith('./')) src += src.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
return `\
<object classid="clsid:${randomUUID().toUpperCase()}">
<param name="SRC" value="${src}" >