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 javascript and css gets blocked by ublock #45

Open
1 task done
barslmn opened this issue Aug 13, 2023 · 4 comments
Open
1 task done

Some javascript and css gets blocked by ublock #45

barslmn opened this issue Aug 13, 2023 · 4 comments

Comments

@barslmn
Copy link

barslmn commented Aug 13, 2023

Hi,
Some javascript and css gets blocked by ublock.

2023-08-13.15-59-51.mp4

I suspect the issue is at
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://alhassy.github.io/org-special-block-extras/tooltipster/dist/css/tooltipster.bundle.min.css\"/>

This can be solved by having these embedded or letting the user chose where they're loaded from or having them loaded from a relative path. Or some better solution I can't think of?

Please tick the following, by replacing [ ] with [X]

  1. I have checked some boxes without reading them.

Edit: I also noticed that these are inserted to document more than once (30 times):

2023-08-13.16-13-45.mp4

Edit2: This repeated insertion probably should be a seperate issue i guess. It can be seen at documentation page too:
view-source:http://alhassy.com/org-special-block-extras/

@barslmn
Copy link
Author

barslmn commented Aug 13, 2023

I think duplication is because it get concated https://github.com/alhassy/org-special-block-extras/blob/18d754d8491aa41104a309c3161576bee15e42f6/org-special-block-extras.el#L127C20-L127C20. It gets duplicated.

So org-html-head-extra gets longer and longer with every export. :(

I found this:
https://github.com/alhassy/org-special-block-extras/blob/18d754d8491aa41104a309c3161576bee15e42f6/org-special-block-extras.el#L102C13-L102C13

and disable it
Thanks

@sachac
Copy link

sachac commented Oct 11, 2023

You can skip adding that HTML code with (setq org--ospe-kbd-html-setup t org--tooltip-html-setup t)

@barslmn
Copy link
Author

barslmn commented Oct 12, 2023

Hi @sachac , Thanks for the emacs news.

I skip adding them with (setq org-special-block-add-html-extra nil)

@sachac
Copy link

sachac commented Oct 12, 2023 via email

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