saschaleib / dokuwiki-plugin-adhoctags

A secure but flexible way to insert HTML tags into DokuWiki
GNU General Public License v2.0
1 stars 0 forks source link

ODT export error #10

Closed Stikus closed 7 months ago

Stikus commented 1 year ago

Hello, I'm not sure if this issue belongs here or to OPT plugin, but I'll start here. I have test page with this code:

<pre><a [style=background-color:#fff200]>rm -rf %%__%%</a><a [style=background-color:#ea9999]>220130</a><a [style=background-color:#fff200]>*_fastq4%%__%%</a></pre>

image

All rendered good (I've updated our wiki and replaced pure HTML with this plugin), but ODT export not working on pages with plugin tags:

image

saschaleib commented 1 year ago

So there are actually people using ODT :-) Indeed, Ad-Hoc Tags doesn't support this export at the moment. But it should not be too hard to add at least rudimentary support... just give me a day or so :-)

serge2016 commented 1 year ago

Yes, we do! Thank you very much!

Stikus commented 1 year ago

I haven't found any other .doc or .docx export, that's why we use odt. Thanks for plans of implementation this.

saschaleib commented 1 year ago

There is now rudimentary support for ODT export in the latest development build.

As always: this is still under development and might not yet always work as intended. Feedback is very much welcome! :-)

serge2016 commented 1 year ago

Dear @saschaleib, could you add support for colors in the <a> elements for the example in this issue? I don't see corresponding changes in the last commit(

saschaleib commented 1 year ago

@serge2016 Ah, yes, sorry, forgot about that one. I'll have a look...

saschaleib commented 1 year ago

Hm, actually, links have the same problem as headlines... I have, for now, just added the link in front of the text (with an extra '#' character as link text). This is not a very good solution, I know. I'll still look into this - most likely together with the headlines, as the problem is more or less the same.

serge2016 commented 1 year ago

Thank you!

saschaleib commented 1 year ago

So, I found a theoretical way to solve the link and headlines issues, but unfortunately it is blocked because of a bug in the ODT plugin. I have filed a report over there, and I keep this issue open to revisit it later, but this seems to be all I can do for now.

Stikus commented 1 year ago

Thanks for work, I assume you are talking about this issue: https://github.com/lpaulsen93/dokuwiki-plugin-odt/issues/289 - I left like there.

Do you plan to release a new version of the plugin with current changes, or you want to wait for a fix? For now, ODT export is broken due to missing of new release.

saschaleib commented 1 year ago

I would still like to make a few more tests to make sure that this doesn't have any other side-effects, but I guess I can make a new release either later today or maybe tomorrow. In the meantime, you can install directly from the main page (either download as ZIP, or just copy the URL of the ZIP file and use that for a manual update (don't forget to check "Override existing files", otherwise DokuWiki will add this as a new plugin).