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

Fix #73. Also put some image captions in their place.

This commit is contained in:
Starbeamrainbowlabs 2016-06-03 09:32:26 +01:00
parent 57bfb8468e
commit 8332cd955d
4 changed files with 11 additions and 3 deletions

View file

@ -329,6 +329,8 @@ input[type=button], input[type=submit] { cursor: pointer; }
.image-controls li { display: inline-block; margin: 5px; padding: 5px; }
.link-display { margin-left: 0.5rem; }
figure { display: inline-block; }
figure > :first-child { display: block; }
figcaption { text-align: center; }
.printable { padding: 2rem; }
@ -4781,8 +4783,10 @@ class PeppermintParsedown extends ParsedownExtra
$imageSize = $this->parseSizeSpec($param1);
}
if($param2 !== false && strtolower(trim($param2)) == "caption")
if($param1 !== false && strtolower(trim($param1)) == "caption")
$imageCaption = true;
if($param2 !== false && strtolower(trim($param2)) == "caption")
$imageCaption = true;
if($param3 !== false && strtolower(trim($param3)) == "caption")
$imageCaption = true;

View file

@ -203,7 +203,7 @@
"author": "Emanuil Rusev & Starbeamrainbowlabs",
"description": "An upgraded (now default!) 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 some weight to your installation, and also *requires* write access to the disk on first load.",
"id": "parser-parsedown",
"lastupdate": 1464608102,
"lastupdate": 1464942369,
"optional": false
}
]

View file

@ -387,8 +387,10 @@ class PeppermintParsedown extends ParsedownExtra
$imageSize = $this->parseSizeSpec($param1);
}
if($param2 !== false && strtolower(trim($param2)) == "caption")
if($param1 !== false && strtolower(trim($param1)) == "caption")
$imageCaption = true;
if($param2 !== false && strtolower(trim($param2)) == "caption")
$imageCaption = true;
if($param3 !== false && strtolower(trim($param3)) == "caption")
$imageCaption = true;

View file

@ -326,6 +326,8 @@ input[type=button], input[type=submit] { cursor: pointer; }
.image-controls li { display: inline-block; margin: 5px; padding: 5px; }
.link-display { margin-left: 0.5rem; }
figure { display: inline-block; }
figure > :first-child { display: block; }
figcaption { text-align: center; }
.printable { padding: 2rem; }