@hyperbook/markdown 0.42.1 → 0.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/client.js +3 -2
- package/dist/index.js +1 -5
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/assets/client.js
CHANGED
|
@@ -280,8 +280,9 @@ var hyperbook = (function () {
|
|
|
280
280
|
const urlParams = new URLSearchParams(window.location.search);
|
|
281
281
|
const standaloneParam = urlParams.get('standalone') === 'true';
|
|
282
282
|
|
|
283
|
-
// Check if page is inside an iframe
|
|
284
|
-
const
|
|
283
|
+
// Check if page is inside an iframe (but not VSCode webview)
|
|
284
|
+
const isVSCodeWebview = typeof acquireVsCodeApi !== 'undefined';
|
|
285
|
+
const isInIframe = window.self !== window.top && !isVSCodeWebview;
|
|
285
286
|
|
|
286
287
|
if (standaloneParam || isInIframe) {
|
|
287
288
|
const mainGrid = document.querySelector('.main-grid');
|
package/dist/index.js
CHANGED
|
@@ -64025,11 +64025,7 @@ var remarkImage_default = (ctx) => () => {
|
|
|
64025
64025
|
tagName: "img",
|
|
64026
64026
|
properties: {
|
|
64027
64027
|
...figureProps,
|
|
64028
|
-
src:
|
|
64029
|
-
node3.url,
|
|
64030
|
-
"public",
|
|
64031
|
-
ctx.navigation.current || void 0
|
|
64032
|
-
),
|
|
64028
|
+
src: node3.url,
|
|
64033
64029
|
alt: node3.alt,
|
|
64034
64030
|
onclick: `hyperbook.toggleLightbox(this)`
|
|
64035
64031
|
},
|