Conflict with Dokuwiki Blog plugin
pmgeuze opened this issue · comments
Hello friends,
Thank you for a great plugin. I have noticed that when I have the Blog plugin on a page and any of the Blog entries contains a ToDo task, that when I 'check' the ToDo task that it will show checked. When I refresh the page, the ToDo item is unchecked, and that the ToDo text that marks an item as checked is instead inserted after the greater than symbol in the Blog command.
{{blog #pmgeuze:2021-10-18>journal&fullpage}}
----
===== To Do Tasks =====
~~TODOLIST completed:no header:firstheader~~
This text insert will then break the Blog command and does not mark the ToDo task either.
I hope that this is somehow a simple fix, but I appreciate that it may be complicated due to the nesting issue. I enjoy using your ToDo as an addition to my Journal (Blog).
I don't use the blog plugin, so i don't know anything about its details.
Can you verify that the blog plugins isn't preventing the code change or is overwriting the change?
Did you report this issue for the blog plugin?
If there is no further response I'll close this soon.
It's really an edge case, but if we rework
dokuwiki-plugin-todo/action.php
Lines 134 to 135 in 4f36f53
@pmgeuze Oh, and the workaround would be to just add a Todo at the bottom of the "main" blog page (where you put the blog plugin syntax...) because our code searches for an opening <todo
and a closing >
right after it. In your example there is no opening <todo
so the search returns 0, and since blog plugins syntax is the first closing >
, our change is applied there...
As explained in the PR's message this fix isn't perfect but will prevent todos nested from a different page to break the page nesting them - as long as the nesting page doesn't use todos also...