We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91119e1 commit eff19f4Copy full SHA for eff19f4
1 file changed
packages/ui-default/backendlib/markdown-it-media.ts
@@ -101,7 +101,7 @@ export function Media(md: MarkdownIt) {
101
if (result) return result;
102
}
103
if (service === 'pdf') {
104
- if (src.startsWith('file://') || src.startsWith('./')) src += src.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
+ if (src.startsWith('file://') || src.startsWith('./') || (src[1] === '/' && src[2] !== '/')) src += src.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
105
// A response with has content-disposition header causes the browser to download the file automatically.
106
// As we cannot control response header from external sites, we block embedding external PDFs.
107
else return '<p>Embedding an external PDF is no longer supported.</p>';
0 commit comments