|
|
|
@ -124,6 +124,12 @@ export function Media(md: MarkdownIt) {
|
|
|
|
|
scrolling="no" border="0" frameborder="no" framespacing="0" width="100%" style="min-height:500px" ${allowFullScreen}></iframe>
|
|
|
|
|
`;
|
|
|
|
|
}
|
|
|
|
|
if (service === 'msoffice') {
|
|
|
|
|
return `\
|
|
|
|
|
<iframe src="https://view.officeapps.live.com/op/view.aspx?src=${encodeURIComponent(src)}"
|
|
|
|
|
scrolling="no" border="0" frameborder="no" framespacing="0" width="100%" style="min-height:500px" ${allowFullScreen}></iframe>
|
|
|
|
|
`;
|
|
|
|
|
}
|
|
|
|
|
if (service === 'pdf') {
|
|
|
|
|
if (src.startsWith('file://')) src += src.includes('?') ? '&noDisposition=1' : '?noDisposition=1';
|
|
|
|
|
return `\
|
|
|
|
|