Rename diagram_png_base64 to diagram_png_b64 (#371)
Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
parent
7420718f10
commit
b06c75bf2f
@ -39,7 +39,7 @@ Note that there must be one single space between `--` and `%` at both ends.
|
|||||||
| `<!-- %sheet_current% -->` | `1` (multi-page documents not yet supported) |
|
| `<!-- %sheet_current% -->` | `1` (multi-page documents not yet supported) |
|
||||||
| `<!-- %sheet_total% -->` | `1` (multi-page documents not yet supported) |
|
| `<!-- %sheet_total% -->` | `1` (multi-page documents not yet supported) |
|
||||||
| `<!-- %diagram% -->` | Embedded SVG diagram as valid HTML |
|
| `<!-- %diagram% -->` | Embedded SVG diagram as valid HTML |
|
||||||
| `<!-- %diagram_png_base64% -->` | Embedded base64 encoded PNG diagram as URI |
|
| `<!-- %diagram_png_b64% -->` | Embedded base64 encoded PNG diagram as URI |
|
||||||
| `<!-- %{item}% -->` | String or numeric value of `metadata.{item}` |
|
| `<!-- %{item}% -->` | String or numeric value of `metadata.{item}` |
|
||||||
| `<!-- %{item}_{i}% -->` | Category number `{i}` within dict value of `metadata.{item}` |
|
| `<!-- %{item}_{i}% -->` | Category number `{i}` within dict value of `metadata.{item}` |
|
||||||
| `<!-- %{item}_{i}_{key}% -->` | Value of `metadata.{item}.{category}.{key}` |
|
| `<!-- %{item}_{i}_{key}% -->` | Value of `metadata.{item}.{category}.{key}` |
|
||||||
|
|||||||
@ -154,7 +154,7 @@ def generate_html_output(
|
|||||||
|
|
||||||
replacement_if_used("<!-- %diagram% -->", svgdata)
|
replacement_if_used("<!-- %diagram% -->", svgdata)
|
||||||
replacement_if_used(
|
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
|
# prepare metadata replacements
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user