jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
605 stars 63 forks source link

MathJax not rendering when theme is changed #65

Closed KaranJayachandra closed 2 years ago

KaranJayachandra commented 2 years ago

Hi, Good day! Thanks for the work on this repo. I am trying to use the Spaceship with this theme: Jekyll Theme Console. You can see the result here. MathJax however doesnt't seem to be rendering both locally and on GitHub pages. Could you please point me in the right direction on how to fix this? I am still new to using code and might have missed something obvious. Thanks for your help!

jeffreytse commented 2 years ago

Hi @KaranJayachandra

Thanks for the issue, I will work on this issue as soon as possible.

Thanks and Regards

jeffreytse commented 2 years ago

@KaranJayachandra I have taken a look your code, it actually has a MathJax script in the head of HTML document, I think it is something wrong that makes MathJax not working, please commit an issue to MathJax project.

KaranJayachandra commented 2 years ago

Hi @jeffreytse Thank you very much for the quick response. This script code was added by the theme. I have changed the theme to remove this. I am not sure this is a Mathjax issue because even without this, the render isn't working. Please have a look here.

jeffreytse commented 2 years ago

Hi @KaranJayachandra

Thanks for your support, and I would like to help you settle down your issue. Could you change your remote theme in your _config.yml to jekyll-theme-yat and try again? After this let me know the result. : )

Thanks an Regards

KaranJayachandra commented 2 years ago

Hi @jeffreytse! Thanks for the comment and great work on this repo. This is exactly the issue, there seems to be some conflict with this theme.

jeffreytse commented 2 years ago

@KaranJayachandra Exactly the conflict with that theme, I need much more time to dig this issue, please be patient.

jeffreytse commented 2 years ago

@KaranJayachandra Thanks for your patience, after my digging, I have found out the reason, your theme has a high-level security configuration to prevent loading script from cross-site by the Content Security Policy (CSP) head meta, you can settle your issue by removing it.

KaranJayachandra commented 2 years ago

Hi @jeffreytse ! Thanks for taking the time to look at this. This has resolved the issue. Your assistance is much appreciated!

jeffreytse commented 2 years ago

@KaranJayachandra You're welcome, and hope you have a good day! : )