githubmarkdowngithub-pagesgitbook

Why does the GitBook code block plugin not show code on the GitBook website?


I am writing a GitBook. The is the legacy GitBook website and a new GitBook website.

The new GitBook website isn't showing the code that I am including via the include-codeblock plugin.

How can I get this to work?

enter image description here

GitBook URL: https://linrongbin16.gitbook.io/gitbook-way-to-algorithm/sort/quicksort

GitHub repo: https://github.com/linrongbin16/Way-to-Algorithm


Solution

  • I don't think that will work with GitBook v2. The documentation states that

    In general, the plugin system no longer exists. However, important plugins have become first-class features in the new version.

    I don't see include-codeblock in the list of plugins that have been integrated natively with GitBook.