Skip to content

Commit

Permalink
simplify cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Girard committed Mar 3, 2024
1 parent c3bbbd4 commit 2044633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _extensions/embedpdf/embedpdf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function pdfobject(args)

--detect html
if quarto.doc.isFormat("html:js") then
return pandoc.RawInline('html', '<div id="' .. id .. '"></div><script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script><script>let myPDF = PDFObject.embed("../../' .. data .. '", "#' .. id .. '", {forcePDFJS: true, PDFJS_URL: "/pdfjs/web/viewer.html"});</script>')
return pandoc.RawInline('html', '<div id="' .. id .. '"></div><script src="https://unpkg.com/pdfobject"></script><script>PDFObject.embed("../../' .. data .. '", "#' .. id .. '", {forcePDFJS: true, PDFJS_URL: "/pdfjs/web/viewer.html"});</script>')
else
end
end

0 comments on commit 2044633

Please sign in to comment.