assets/layouts/obsidian.html in jekyll-obsidian-1.1.8 vs assets/layouts/obsidian.html in jekyll-obsidian-1.2.0

- old
+ new

@@ -1,11 +1,11 @@ <!DOCTYPE html> <html lang="{{ page.lang | default: site.lang | default: " en" }}"> <head> <script src="https://cdn.jsdelivr.net/npm/he@latest/he.min.js"></script> - <script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.2.3/purify.min.js"></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.1.6/purify.min.js"></script> <script src=" https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js "></script> <link rel="stylesheet" href="{{ '/assets/obsidian/obsidian.css' | relative_url }}"> <style> .page-content { display: flex; @@ -60,11 +60,11 @@ const MODALS = OBSIDIAN.querySelector('#modals'); const mediaModal = MODALS.querySelector('#media-modal'); const media = mediaModal.querySelector("#media"); const mediaData = mediaModal.querySelector("#media-data"); - const FILEREAD = OBSIDIAN.querySelector('#fileread'); + const FILEREAD = OBSIDIAN.querySelector(' #fileread'); const NOTE = FILEREAD.querySelector('#note'); const CANVAS = FILEREAD.querySelector('#canvas'); // ! GLOBAL CONSTS const minWidth = 10; const maxWidth = 50; @@ -150,13 +150,9 @@ else return fullFilePath = '/' + VAULTPATH + filePath; } function getFileType(filePath) { const extensionToType = { - // Notes - 'mdj': 'note', 'txt': 'note', - // Canvas - 'canvas': 'canvas', // Images 'jpg': 'image', 'jpeg': 'image', 'png': 'image', 'gif': 'image', 'bmp': 'image', 'webp': 'image', // PDFs 'pdf': 'pdf', // SVGs \ No newline at end of file