Add unit to image sizing syntax in parser-parsedown.

This commit is contained in:
Starbeamrainbowlabs 2016-03-12 18:32:58 +00:00
parent 66ae937cc7
commit be2daaa5cc
4 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@
- 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.
- Added icons to the "More..." menu
- Help section to parsedown parser.
## Changed
- Improved appearance of the all pages list.

View File

@ -3849,7 +3849,7 @@ class PeppermintParsedown extends ParsedownExtra
$style = "";
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)
$style .= " float: $floatDirection;";

View File

@ -194,7 +194,7 @@
"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.",
"id": "parser-parsedown",
"lastupdate": 1457807249,
"lastupdate": 1457807539,
"optional": false
}
]

View File

@ -149,7 +149,7 @@ class PeppermintParsedown extends ParsedownExtra
$style = "";
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)
$style .= " float: $floatDirection;";