Rename diagram_png_base64 to diagram_png_b64 (#371)
This commit is contained in:
parent
fc7ea088b4
commit
6ba33fb5dc
@ -39,10 +39,10 @@ Note that there must be one single space between `--` and `%` at both ends.
|
||||
| `<!-- %sheet_current% -->` | `1` (multi-page documents not yet supported) |
|
||||
| `<!-- %sheet_total% -->` | `1` (multi-page documents not yet supported) |
|
||||
| `<!-- %diagram% -->` | Embedded SVG diagram as valid HTML |
|
||||
| `<!-- %diagram_png_base64% -->` | Embedded base64 encoded PNG diagram as URI |
|
||||
| `<!-- %{item}% -->` | String or numeric value of `metadata.{item}` |
|
||||
| `<!-- %{item}_{i}% -->` | Category number `{i}` within dict value of `metadata.{item}` |
|
||||
| `<!-- %{item}_{i}_{key}% -->` | Value of `metadata.{item}.{category}.{key}` |
|
||||
| `<!-- %diagram_png_b64% -->` | Embedded base64 encoded PNG diagram as URI |
|
||||
| `<!-- %{item}% -->` | String or numeric value of `metadata.{item}` |
|
||||
| `<!-- %{item}_{i}% -->` | Category number `{i}` within dict value of `metadata.{item}` |
|
||||
| `<!-- %{item}_{i}_{key}% -->` | Value of `metadata.{item}.{category}.{key}` |
|
||||
|
||||
Note that `{item}`, `{category}` and `{key}` in the description above can be
|
||||
any valid YAML key, and `{i}` is an integer representing the 1-based index of
|
||||
|
||||
@ -96,7 +96,7 @@ def generate_html_output(
|
||||
|
||||
replacement_if_used("<!-- %diagram% -->", svgdata)
|
||||
replacement_if_used(
|
||||
"<!-- %diagram_png_base64% -->", lambda: data_URI_base64(f"{filename}.png")
|
||||
"<!-- %diagram_png_b64% -->", lambda: data_URI_base64(f"{filename}.png")
|
||||
)
|
||||
|
||||
# prepare metadata replacements
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user