[SVG] Allow preprocessing on value of SVG options
Author: The-LumCreated May 3, 2026Updated Aug 23, 2026
Labelstriagefor-claude
Context
To follow:
- #1877
- #2292
Wanted feature
- Could you allow preprocessing on value of SVG options?
Example (observed on v1.2026.3b6)
@startuml
!option svgTitle "This is the title"
!option svgDesc "This is the description on %date()"
title
Printed title
(%date())
end title
alice -> bob: hello
@endumlHere is the wrong SVG output:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" data-diagram-type="SEQUENCE" height="176px" preserveAspectRatio="none" style="width:285px;height:176px;background:#FFFFFF;" version="1.1" viewBox="0 0 285 176" width="285px" zoomAndPan="magnify">
<?plantuml 1.2026.3beta6?>
<title>This is the title</title>
<desc>This is the description on %date()</desc>
<defs/>
<g>
<g class="title" data-source-line="4">
<text fill="#000000" font-family="sans-serif" font-size="14" font-weight="700" lengthAdjust="spacing" textLength="95.4912" x="91.7407" y="27.9951">
Printed title
</text>
<text fill="#000000" font-family="sans-serif" font-size="14" font-weight="700" lengthAdjust="spacing" textLength="258.9727" x="10" y="44.292">
(Sun May 03 14:24:53 UTC 2026)
</text></g>
...with:
<desc>This is the description on %date()</desc>Regards, Th.
Source: plantuml/plantuml