mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +00:00
Added broken bar character support to the image syntax
This commit is contained in:
parent
4accd65ca8
commit
215fe4461a
3 changed files with 3 additions and 15 deletions
|
@ -5126,9 +5126,6 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
* ██ ██ ██ ██ ██ ██ ██ ██
|
* ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
* ███████ ██ ██ ████ ██ ██ ███████
|
* ███████ ██ ██ ████ ██ ██ ███████
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected function inlineInternalLink($fragment)
|
protected function inlineInternalLink($fragment)
|
||||||
{
|
{
|
||||||
global $pageindex, $env;
|
global $pageindex, $env;
|
||||||
|
@ -5208,14 +5205,11 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
* ██ ██ ██ ██ ██ ██████ ███████ ███████
|
* ██ ██ ██ ██ ██ ██████ ███████ ███████
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected function inlineExtendedImage($fragment)
|
protected function inlineExtendedImage($fragment)
|
||||||
{
|
{
|
||||||
global $pageindex;
|
global $pageindex;
|
||||||
|
|
||||||
if(preg_match('/^!\[(.*)\]\(([^|)]+)\s*(?:\|([^|)]*))?(?:\|([^|)]*))?(?:\|([^)]*))?\)/', $fragment["text"], $matches))
|
if(preg_match('/^!\[(.*)\]\(([^|¦)]+)\s*(?:(?:\||¦)([^|¦)]*))?(?:(?:\||¦)([^|¦)]*))?(?:(?:\||¦)([^)]*))?\)/', $fragment["text"], $matches))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* 0 - Everything
|
* 0 - Everything
|
|
@ -203,7 +203,7 @@
|
||||||
"author": "Emanuil Rusev & Starbeamrainbowlabs",
|
"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.",
|
"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",
|
"id": "parser-parsedown",
|
||||||
"lastupdate": 1471855223,
|
"lastupdate": 1471860654,
|
||||||
"optional": false
|
"optional": false
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -311,9 +311,6 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
* ██ ██ ██ ██ ██ ██ ██ ██
|
* ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
* ███████ ██ ██ ████ ██ ██ ███████
|
* ███████ ██ ██ ████ ██ ██ ███████
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected function inlineInternalLink($fragment)
|
protected function inlineInternalLink($fragment)
|
||||||
{
|
{
|
||||||
global $pageindex, $env;
|
global $pageindex, $env;
|
||||||
|
@ -393,14 +390,11 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
* ██ ██ ██ ██ ██ ██████ ███████ ███████
|
* ██ ██ ██ ██ ██ ██████ ███████ ███████
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected function inlineExtendedImage($fragment)
|
protected function inlineExtendedImage($fragment)
|
||||||
{
|
{
|
||||||
global $pageindex;
|
global $pageindex;
|
||||||
|
|
||||||
if(preg_match('/^!\[(.*)\]\(([^|)]+)\s*(?:\|([^|)]*))?(?:\|([^|)]*))?(?:\|([^)]*))?\)/', $fragment["text"], $matches))
|
if(preg_match('/^!\[(.*)\]\(([^|¦)]+)\s*(?:(?:\||¦)([^|¦)]*))?(?:(?:\||¦)([^|¦)]*))?(?:(?:\||¦)([^)]*))?\)/', $fragment["text"], $matches))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* 0 - Everything
|
* 0 - Everything
|
Loading…
Reference in a new issue