1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

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`. - 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.

View file

@ -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;";

View file

@ -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
} }
] ]

View file

@ -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;";