naokij / dokuwiki-plugin-markdownextra

Parses PHP Markdown Extra blocks for dokuwiki with backlinks, header parser, toc support
Other
31 stars 27 forks source link

Markdownextra plugin breaks TOC #1

Closed akhayyat closed 11 years ago

akhayyat commented 11 years ago

The table of contents (TOC) is shown only when the cache is disabled, whether using ?purge=true in the URL, or ~~NOCACHE~~ in the page contents. With the cache enabled, the TOC is shown only the first time the page is generated (e.g. after editing). Any subsequent page reload does not show the TOC at all. Not even an empty TOC. The TOC div is not there. Occasionally, the first reload will still show the TOC, but the second reload always does not.

This happens on two dokuwiki instances on two different hosting providers.

Test page:

<markdown>
# Test Page
## First Section
## Second Section
## Third Section
## Fourth Section
</markdown>

DokuWiki Release 2012-10-13 "Adora Belle"

First server: Linux 3.2.31 x86_64, Apache 2.2.23, PHP 5.2.17 Second server: Linux 2.6.32-279 x86_64, Apache 2.2.3, PHP 5.3.14

naokij commented 11 years ago

Fixed. Please remove the markdown extra plugin and install it again with this url https://github.com/dokufreaks/plugin-tag/tarball/master

akhayyat commented 11 years ago

That was a typo, wasn't it? You put the tag plugin URL instead. I tried the new github download URL for the markdownextra, and it appears to have fixed the problem indeed. Thanks!

akhayyat commented 11 years ago

I fixed the URL on the plugin's page at dokuwiki.org, in the bugs section.

naokij commented 11 years ago

Yes, a typo.