-
Notifications
You must be signed in to change notification settings - Fork 15
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
The package does not work with the readtheorg-theme #2
Comments
I'm glad to read that you've enjoyed the package ^_^ I've tried to reproduce your issue but could not do so.
I've looked into avoiding loading jQuery multiple times; it's a simple if-then-else check; but perhaps you could provide me with a minimal example of your issue. All the best! |
Oh, I might have been a little unspecific describing the problem :) The cool stuff happening with the readtheorg-theme is not possible to see unless the document is of a certain length. I´ve exported a document with dummy text now, so you can see for yourself. The version exported without org-special-block-extras: http://folk.ntnu.no/simehol/specialBlockExample/exportedWithoutSpecialBlocks.html When I scroll in the browser I now get this effect: The version exported with org-special-block-extras: http://folk.ntnu.no/simehol/specialBlockExample/exportedWithSpecialBlocks.html As you can see, the left panel headings does not expand to show subheadings when scrolling on the page which is exported with org-special-block-extras. The org-file exported is provided in its entirety below:
I hope that made the issue clearer :) |
Hey @SimenHolmestad, thanks for the MWE! I've reproduced your issue and following your observation,
I was able to fix the issue. I've pushed the fix, which you can either download manually or await the next MELPA build ---which may occur in a few hours. Enjoy! |
I really like the package and had a fun time creating my own special-block!
However, a problem I found after installing the package is that some of the interactivity of my html-exports are gone. I often use the readtheorg-theme from https://github.com/fniessen/org-html-themes, which can be enabled by adding
to the top of an org file. After adding the org-special-block-extras package, the content-table at the left of the theme does not react when scrolling as it should do.
After examining the html-output of the org-file, the problem seems to be that the jQuery-library is loaded two times. Both by this package and from the readtheorg-setupfile.
Is there a way to change this package in a way so that this does not happen? 😊
The text was updated successfully, but these errors were encountered: