next-theme / hexo-generator-searchdb

🔍 Seach data generator plugin for Hexo.
https://www.npmjs.com/package/hexo-generator-searchdb
MIT License
65 stars 5 forks source link

search conflit with mermaid.js #24

Closed gkxk closed 1 year ago

gkxk commented 2 years ago

Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

Actual behavior

https://theme-next.js.org/docs/tag-plugins/mermaid.html?highlight=Hard image

Steps to reproduce the behavior

Environment Information

Node.js and NPM Information

Package dependencies Information

Hexo Configuration

NexT Configuration

Other Information

I have quickfixed this in a stupid way (redirect to location.origin + location.pathname if any error is detected)

just want to leave a message, to let anyone related know the issue.

hope that someone could fix this in a smarter way...

welcome[bot] commented 2 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

stevenjoezhang commented 1 year ago

Fixed in https://github.com/next-theme/hexo-generator-searchdb/commit/d416b347186d1577e3b5ea76e22c7b4a0b0e4c5d Thanks for your feedback

gkxk commented 1 year ago

thanks for your work, but still not working..

steps I have tried: 1, update lib 'hexo-generator-searchdb' to 1.4.1 2, recompile hexo

maybe it's more convincing that you provide a demo page(a blog post url)? (just to make sure) @stevenjoezhang

stevenjoezhang commented 1 year ago

You can try to edit the code here:

https://github.com/next-theme/hexo-theme-next/blob/d3c78c65edc8225557515d2635267af9d628b91d/_vendors.yml#L135-L138

Change the version to 1.4.1, and then remove the line starts with integrity:

gkxk commented 1 year ago

amazing, that works. much appreciate.