mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +00:00
Add unit to image sizing syntax in parser-parsedown.
This commit is contained in:
parent
66ae937cc7
commit
be2daaa5cc
4 changed files with 4 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
||||||
- Added recent changes page under the action `recent-changes`.
|
- Added recent changes page under the action `recent-changes`.
|
||||||
- Changed the cursor when hovering over a time to indicate that the tooltip contains more information.
|
- Changed the cursor when hovering over a time to indicate that the tooltip contains more information.
|
||||||
- Added icons to the "More..." menu
|
- Added icons to the "More..." menu
|
||||||
|
- Help section to parsedown parser.
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
- Improved appearance of the all pages list.
|
- Improved appearance of the all pages list.
|
||||||
|
|
|
@ -3849,7 +3849,7 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
|
|
||||||
$style = "";
|
$style = "";
|
||||||
if($imageSize !== false)
|
if($imageSize !== false)
|
||||||
$style .= " max-width: " . $imageSize["x"] . "; max-height: " . $imageSize["y"] . ";";
|
$style .= " max-width: " . $imageSize["x"] . "px; max-height: " . $imageSize["y"] . "px;";
|
||||||
if($floatDirection)
|
if($floatDirection)
|
||||||
$style .= " float: $floatDirection;";
|
$style .= " float: $floatDirection;";
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@
|
||||||
"author": "Johnny Broadway, Emanuil Rusev & Starbeamrainbowlabs",
|
"author": "Johnny Broadway, Emanuil Rusev & Starbeamrainbowlabs",
|
||||||
"description": "An upgraded parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also requires write access to the disk on first load.",
|
"description": "An upgraded parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also requires write access to the disk on first load.",
|
||||||
"id": "parser-parsedown",
|
"id": "parser-parsedown",
|
||||||
"lastupdate": 1457807249,
|
"lastupdate": 1457807539,
|
||||||
"optional": false
|
"optional": false
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -149,7 +149,7 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
|
|
||||||
$style = "";
|
$style = "";
|
||||||
if($imageSize !== false)
|
if($imageSize !== false)
|
||||||
$style .= " max-width: " . $imageSize["x"] . "; max-height: " . $imageSize["y"] . ";";
|
$style .= " max-width: " . $imageSize["x"] . "px; max-height: " . $imageSize["y"] . "px;";
|
||||||
if($floatDirection)
|
if($floatDirection)
|
||||||
$style .= " float: $floatDirection;";
|
$style .= " float: $floatDirection;";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue