diff options
Diffstat (limited to 'xhtml11-quirks.conf')
-rw-r--r-- | xhtml11-quirks.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xhtml11-quirks.conf b/xhtml11-quirks.conf index bbdd3f0..c20376e 100644 --- a/xhtml11-quirks.conf +++ b/xhtml11-quirks.conf @@ -9,8 +9,8 @@ <div class="content"> <a class="image" href="{link}"> {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} /> -{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64, -{data-uri#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}" /> +{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64, +{data-uri#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}" /> {link#}</a> </div> <div class="image-title">{caption={figure-caption} {counter:figure-number}: }{title}</div> |