summaryrefslogtreecommitdiff
path: root/lib/MyParsedown.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-11 15:01:02 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-11 15:01:02 +0300
commitc2f382aba86aaebb9806ff1b43c1af69992e9a10 (patch)
treeaee205721fd675926c5e7163eec0dddc448f7813 /lib/MyParsedown.php
parent24982a48f570b89e537850dda4a4d1ac33ea919f (diff)
support dark mode for images with alpha channel
Diffstat (limited to 'lib/MyParsedown.php')
-rw-r--r--lib/MyParsedown.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MyParsedown.php b/lib/MyParsedown.php
index c2c0112..11e86d6 100644
--- a/lib/MyParsedown.php
+++ b/lib/MyParsedown.php
@@ -99,6 +99,7 @@ class MyParsedown extends ParsedownHighlight {
nolabel: $opts['nolabel'],
align: $opts['align'],
padding_top: round($h / $w * 100, 4),
+ may_have_alpha: $image->imageMayHaveAlphaChannel(),
url: $image_url,
direct_url: $image->getDirectUrl(),