Skip to content

Commit d3d3d5f

Browse files
committed
Update readme
1 parent 13aa3d9 commit d3d3d5f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ IImagePluginOptions {
104104

105105
/** Duration in minutes after which cached records are removed as stale. Default: 7 days (10080 minutes). */
106106
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;
107117
}
108118
```
109119

0 commit comments

Comments
 (0)