mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 17:19:59 +09:00
Add formatting libraries to composer.json
This commit is contained in:
parent
59ee4a7387
commit
2b008f7be6
202 changed files with 28022 additions and 133 deletions
15
vendor/michelf/php-markdown/Michelf/Markdown.php
vendored
15
vendor/michelf/php-markdown/Michelf/Markdown.php
vendored
|
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
# Original Markdown
|
||||
# Copyright (c) 2004-2006 John Gruber
|
||||
# <http://daringfireball.net/projects/markdown/>
|
||||
# <https://daringfireball.net/projects/markdown/>
|
||||
#
|
||||
namespace Michelf;
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ class Markdown implements MarkdownInterface {
|
|||
|
||||
### Version ###
|
||||
|
||||
const MARKDOWNLIB_VERSION = "1.5.0";
|
||||
const MARKDOWNLIB_VERSION = "1.6.0";
|
||||
|
||||
### Simple Function Interface ###
|
||||
|
||||
|
|
@ -64,6 +64,9 @@ class Markdown implements MarkdownInterface {
|
|||
|
||||
# Optional header id="" generation callback function.
|
||||
public $header_id_func = null;
|
||||
|
||||
# Optional function for converting code block content to HTML
|
||||
public $code_block_content_func = null;
|
||||
|
||||
# Class attribute to toggle "enhanced ordered list" behaviour
|
||||
# setting this to true will allow ordered lists to start from the index
|
||||
|
|
@ -493,7 +496,7 @@ class Markdown implements MarkdownInterface {
|
|||
"doImages" => 10,
|
||||
"doAnchors" => 20,
|
||||
|
||||
# Make links out of things like `<http://example.com/>`
|
||||
# Make links out of things like `<https://example.com/>`
|
||||
# Must come after doAnchors, because you can use < and >
|
||||
# delimiters in inline links like [this](<url>).
|
||||
"doAutoLinks" => 30,
|
||||
|
|
@ -1024,7 +1027,11 @@ class Markdown implements MarkdownInterface {
|
|||
$codeblock = $matches[1];
|
||||
|
||||
$codeblock = $this->outdent($codeblock);
|
||||
$codeblock = htmlspecialchars($codeblock, ENT_NOQUOTES);
|
||||
if ($this->code_block_content_func) {
|
||||
$codeblock = call_user_func($this->code_block_content_func, $codeblock, "");
|
||||
} else {
|
||||
$codeblock = htmlspecialchars($codeblock, ENT_NOQUOTES);
|
||||
}
|
||||
|
||||
# trim leading newlines and trailing newlines
|
||||
$codeblock = preg_replace('/\A\n+|\n+\z/', '', $codeblock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue