We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13aa3d9 commit d3d3d5fCopy full SHA for d3d3d5f
README.md
@@ -104,6 +104,16 @@ IImagePluginOptions {
104
105
/** Duration in minutes after which cached records are removed as stale. Default: 7 days (10080 minutes). */
106
maxAgeMinutes?: number;
107
+
108
+ /**
109
+ * Applies generic fixes to known SVG rendering issues (e.g., Mermaid pie chart title alignment).
110
+ * Designed to be overridden to handle tool-specific quirks in generated SVGs.
111
+ *
112
+ * @param svg - Raw SVG string to transform.
113
+ * @param metadata - Optional metadata such as diagram type or render info.
114
+ * @returns Modified SVG string.
115
+ */
116
+ fixGeneratedSvg?: (svg: string, metadata: any) => string;
117
}
118
```
119
0 commit comments