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

Block conflict with multiple plugins #407

Open
coderjinhui opened this issue Apr 25, 2024 · 0 comments
Open

Block conflict with multiple plugins #407

coderjinhui opened this issue Apr 25, 2024 · 0 comments
Labels
Type: 3rd-party Third-Party plugins

Comments

@coderjinhui
Copy link

Summary

Always return 1 plugin when use multiple plugins with the same block.

  • HonKit version: 5.1.4

Step to reproduce

  1. npm install package: honkit-plugin-prism and gitbook-plugin-mermaid-wnew
  2. use the plugin in book.json
{
    "plugins": [
        "mermaid-wnew",
        "prism"
    ]
}
  1. set debug point to listBlocks, then you will see it will always return the first plugin for code block

Expected results

  • will generate the svg for mermaid code block
  • will highlight other code block

Actual results

always do the first plugin for the same block:

  • if mermaid-wnew before prism, it will generate the svg but all other code block will miss the highlight
  • if prism before mermaid-wnew, all the other code block will highlight but will not generate svg
@coderjinhui coderjinhui changed the title Plugin conflict with multiple blocks Block conflict with multiple plugins Apr 25, 2024
@azu azu added the Type: 3rd-party Third-Party plugins label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: 3rd-party Third-Party plugins
Projects
None yet
Development

No branches or pull requests

2 participants