naokij / dokuwiki-plugin-markdownextra

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

Fix for not-markdown texts on .md pages #6

Closed jlgrall closed 10 years ago

jlgrall commented 10 years ago

For example, without this fix, go to a file.md page, then click on edit, preview, sitemap, admin, etc. You will see that there are texts that are incorrectly rendered as markdown.

(Don't forget to set cachetime to -1 in the DokuWiki configuration while testing.)

jlgrall commented 10 years ago

Wait, its not working for the default view of a page (when $ACT = 'show').

naokij commented 10 years ago

Thanks. I'll wait.

jlgrall commented 10 years ago

Now it seems good. What a pain, there is no clean solution...

Would be better if the parser had access to metadatas about where the text it has to parse comes from.

jlgrall commented 10 years ago

You may try now :)

jlgrall commented 10 years ago

Sometimes just after I log in or log out, the page looks not parsed at all. Neither parsed by markdown nor by DokuWiki. Refreshing the page doesn't fix the problem until I append "?purge=true" to the URL or until I disable the cache in the conf.

I was only able to reproduce this with the start page (which is named index.md in my wiki). The other pages are fine.

I have no idea if it is a bug from the plugin or from DokuWiki or if it is caused by my use of "index.md" as start page.

naokij commented 10 years ago

I was not able to reproduce this on my private wiki.

Dokuwiki version: Release 2012-10-13 "Adora Belle"

Below is the steps of my test

  1. set start.md as my start page
  2. edit start.md
  3. save
  4. logout
  5. login
jlgrall commented 10 years ago

Ok, thanks. I will investigate.