aboutsummaryrefslogtreecommitdiff
path: root/vendors/markdown/markdown.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-27 20:43:58 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-27 20:43:58 +0000
commit3ed995778da6e880853fd2714a01a595182eb474 (patch)
treecb4c7adf045f91da5975cbbef04f4c41a282f8bd /vendors/markdown/markdown.php
parente56b227b471a2f77081fdd2c1aec71edafd6d5f8 (diff)
downloadelgg-3ed995778da6e880853fd2714a01a595182eb474.tar.gz
elgg-3ed995778da6e880853fd2714a01a595182eb474.tar.bz2
Updated markdown to add support for === instead of just ### for headers. Added upstream warning.
git-svn-id: http://code.elgg.org/elgg/trunk@9035 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'vendors/markdown/markdown.php')
-rwxr-xr-xvendors/markdown/markdown.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendors/markdown/markdown.php b/vendors/markdown/markdown.php
index ee3dddbf9..3f1f3a715 100755
--- a/vendors/markdown/markdown.php
+++ b/vendors/markdown/markdown.php
@@ -2246,12 +2246,13 @@ class MarkdownExtra_Parser extends Markdown_Parser {
# ...
# ###### Header 6 {#header2}
#
+ # @note Added for Elgg: You can use = in place of hashes for atx-style.
$text = preg_replace_callback('{
- ^(\#{1,6}) # $1 = string of #\'s
+ ^([\#=]{1,6}) # $1 = string of #\'s
[ ]*
(.+?) # $2 = Header text
[ ]*
- \#* # optional closing #\'s (not counted)
+ [\#=]* # optional closing #\'s (not counted)
(?:[ ]+\{\#([-_:a-zA-Z0-9]+)\})? # id attribute
[ ]*
\n+