nuthrash
nuthrash
> You can also use local imports instead of retrieving scripts from `raw.githubusercontent.com` by importing [`single-filez-core`](https://www.npmjs.com/package/single-filez-core) and [`zip.js`](https://www.npmjs.com/package/@zip.js/zip.js) from NPM, and replacing `"https://raw.githubusercontent.com/gildas-lormeau/SingleFileZ/master/src/single-file"` with `"single-filez-core"` and `"https://raw.githubusercontent.com/gildas-lormeau/zip.js/master/index.js"` with `"@zip.js/zip.js"`. @gildas-lormeau...
> Edit 2: `readBinary` should help, see https://marcus.se.net/obsidian-plugin-docs/reference/typescript/classes/Vault#readbinary, you'll need to call `await extract(new Blob([new Uint8Array(contents)]), { noBlobURL: true });` OK, it works. My code is: ```typescript import { extract...
> You have to ensure that you don't insert the child tags of the `` tag (of the saved page) in a `` tag (of the host page which displays...
> Thank you for the details. From my point of view, you can ignore the warning and set `WHOLE_DOCUMENT` to `true`. Additionally, you could also fix the warning by removing...
> Does it work if you run `DOMPurify.sanitize(dirty, { WHOLE_DOCUMENT: true, ADD_DATA_URI_TAGS: ["link"] });`? (see https://github.com/cure53/DOMPurify#can-i-configure-dompurify) Hmm, more settings need, my testing configuration is ```typescript const purifyConfig = { RETURN_DOM:...
> You have to add `single-file-note` into `ADD_TAGS` if you want to support it. No, even I add it, the tag still would be removed by Obsidian.
> Do you see an empty `` tag or no tag at all in the debugger when the page is displayed in Obsidian? If you see an empty tag, the...
The Obsidian's appVersion: `'5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.0.0 Chrome/100.0.4896.160 Electron/18.3.5 Safari/537.36'`. Obviously, the Obsidian 1.0.0 is a Chromium-based browser. And I am building another...
Refer to "[Parser only](https://web.dev/declarative-shadow-dom/#parser-only)" section, if I insert the HTML string of the HTML file with `single-file-note` by `insertAdjacentHTML()`, the Developer Console would show a yellow message: ``` Found declarative...
OK, thanks very much for your help. If I get something new about this bug, I will tell you.