diagram-generator doesn't recognize width and height on code block
fuhrmanator opened this issue · 1 comments
fuhrmanator commented
If I want to resize a diagram, e.g.,
```{.plantuml width=50%}
the width
is ignored.
I think it's an easy fix by just passing in the width and height when creating the img_attr
in the filter:
local img_attr = {
id = block.identifier,
name = block.attributes.name,
width = block.attributes.width,
height = block.attributes.height
}
My tests locally show it works. I can do a PR if this is acceptable.
tarleb commented
Looks good, I can't think of any reason against this. A PR would be very welcome.