cosmocode / edittable

Plugin to provide a custom editor for tables in DokuWiki
https://www.dokuwiki.org/plugin:edittable
32 stars 26 forks source link

image size parsing bug #191

Open sataix opened 4 years ago

sataix commented 4 years ago

There is a problem parsing images with specified height only, which is specified in the format {{image.png?0x100}} (where 100 is the image height, can be any number). Scenario: 1) Edit table, set cell content to 100-px-tall image {{sample.jpg?0x100}}, save table -- everything is OK. 2) The code of the page is OK, it's indeed {{sample.jpg?0x100}}. 3) Edit the table again, and the parser loads the same cell as {{sample.jpg}} despite the actual code is {{sample.jpg?0x100}}. Obviously there is an error in parsing ?0x100 part.

Specifying width-only {{image.png?100}} and both width and height {{image.png?100x100}} works OK.