compatibility with plugins
Opened this issue · 1 comments
mimoo commented
Hello.
First, looking at your page.html it looks like there is an extra <script>
tag in the middle.
<script src="{{ "gitbook.js"|resolveAsset }}"></script>
{% for resource in plugins.resources.js %}
<!-- ... -->
{% endfor %}
<script>
(function() {
gitbook.page.hasChanged({{ template.getJSContext()|dump|safe }});
})();
</script>
Second, I'm trying to make the wiki-toc plugin work with this theme and I just can't. I see that you do not have the .markdown-section
anymore, but it seems like replacing this with .gb-markdown
doesn't work. I need some guidance on how I could make it work. Thanks!
mimoo commented
OK so I found out the issues to my two questions:
-
Do what I did in this Pull Request to fix the theme. Otherwise javascript and other plugins won't work.
-
in
node_modules/gitbook-plugin-wiki-toc/assets/page-toc.js
the 3rd line should read:
const selector = ".gb-markdown h2, .gb-markdown h3, .gb-markdown h4";