Description
When rendering tikz-cd diagrams via the [tikz] block in the latest version of Kroki, the output image contains excessive whitespace (incorrect bounding box calculation). This issue did not occur in previous versions. Adjusting \documentclass options or manually resetting the bounding box via \pgfresetboundingbox does not resolve the issue, suggesting a regression in the server-side TikZ compilation or SVG conversion pipeline.
Minimal Reproducible Example
[tikz]
----
\documentclass{standalone}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
&&& \\
&&& {Watch\ Band} \\
{*} &&& {Watch\ Front\ Cover} \\
&&& {...} \\
&&&
\arrow["f_1", from=3-1, to=2-4]
\arrow["f_2"', from=3-1, to=3-4]
\arrow["f_i"', from=3-1, to=4-4]
\end{tikzcd}
\end{document}
----
Expected Behavior
The rendered SVG/PNG should be tightly cropped around the diagram content with minimal padding, consistent with the behavior of standalone document class and previous Kroki versions.
Actual Behavior
The output image has significant extra whitespace surrounding the diagram. The bounding box appears to be calculated incorrectly, ignoring the actual content boundaries of the tikzcd environment.
ps. kroki 0.28.0 docker image works correctly.
Description
When rendering tikz-cd diagrams via the [tikz] block in the latest version of Kroki, the output image contains excessive whitespace (incorrect bounding box calculation). This issue did not occur in previous versions. Adjusting \documentclass options or manually resetting the bounding box via \pgfresetboundingbox does not resolve the issue, suggesting a regression in the server-side TikZ compilation or SVG conversion pipeline.
Minimal Reproducible Example
Expected Behavior
The rendered SVG/PNG should be tightly cropped around the diagram content with minimal padding, consistent with the behavior of standalone document class and previous Kroki versions.
Actual Behavior
The output image has significant extra whitespace surrounding the diagram. The bounding box appears to be calculated incorrectly, ignoring the actual content boundaries of the tikzcd environment.
ps. kroki 0.28.0 docker image works correctly.