--- /dev/null
+This file has been modified from its upstream. When upgrading, be sure to check the following mods:
+
+* Headers can be created with =, ==, etc instead of just #, ##.
+* @todo Autolink (f|ht)tp(s)?://link.com.
+* @todo GFM improvement for newlines: http://github.github.com/github-flavored-markdown/
\ No newline at end of file
# ...
# ###### 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+