Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some code blocks missing #1502

Closed
hxlhxl opened this issue Jul 18, 2024 · 3 comments
Closed

some code blocks missing #1502

hxlhxl opened this issue Jul 18, 2024 · 3 comments

Comments

@hxlhxl
Copy link

hxlhxl commented Jul 18, 2024

Describe the bug
code blocks missing

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://mdxjs.com/docs/using-mdx/'
  2. Click on 'Save file with singlefile'
  3. Open downloaded html
  4. Code block is missing

Expected behavior
full content should be downloaded

Screenshots
image

Environment

  • OS: Linux debian 5.10.0-23-amd64
  • Browser: Google Chrome Version 113.0.5672.92 (Official Build) (64-bit)
  • Version: SingleFile Version 1.22.51
@gildas-lormeau
Copy link
Owner

Thank you. I confirm I can reproduce the bug. However, if I open the page I saved with Chrome in Firefox or Safari, the blocks are visible. So, it seems to be a tricky issue...

@gildas-lormeau
Copy link
Owner

Taking a closer look at the problem, it seems that the author has decided to deploy some "experimental" code in production. The problem stems from the following declaration mask-image: paint(squircle);. mask-image is not supported in Safari and Firefox. paint() is also only supported in Chrome, cf. https://developer.mozilla.org/en-US/docs/Web/CSS/image/paint, and could be qualified as experimental. I'll have to look into this, but for this to work properly, the page would have to include a piece of JavaScript code to make calls to CSS.paintWorklet.addModule().

@gildas-lormeau
Copy link
Owner

It took a bit of work, but I was able to implement Worklet support. The fix will be available in the next version.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants