Klap-in / dokuwiki-plugin-imagereference

Dokuwiki plugin that creates references to images/tables in your text, like the LaTeX figure references.
https://www.dokuwiki.org/plugin:imagereference
0 stars 7 forks source link

add support for Diagram plugin #6

Open Klap-in opened 10 years ago

Klap-in commented 10 years ago

Got the request: The diagram plugin (https://www.dokuwiki.org/plugin:diagram) create tables, which looks like images.

Note: this required the tabcaption wrap, but numbering of imgcaption...

Example syntax:

<imgcaption 2|asdfasdf>
<diagram>
|  AAA  |-@2|  BBB  |-@a|  EEE   |
| |:@1| |   | |!@4| |   | |}@72|-|-| GGG |
|  DDD  |~@8|  CCC  |   |  FFF   |
</diagram>
</imgcaption>
Klap-in commented 10 years ago

Workaround sofar: diagram plugin is now allowed in the <tabcaption>. (with commit 494262e8432a5a913dc7745b88bce65a6376f900 ) But this shows now table numbering of course, while image numbering is preferred for these diagrams...

For more sophisticated solution i need to investigate how to detect whether a <diagram></diagram> is in <imgcaption></imgcaption>