Permalink
Browse files

Fixed a few typos.

  • Loading branch information...
1 parent a9bdbe6 commit e5a7c782a8b735c2076522563cfc37d9718be514 @michelf committed Nov 9, 2008
Showing with 6 additions and 6 deletions.
  1. +6 −6 markdown.php
View
@@ -691,12 +691,12 @@ function doAnchors($text) {
\)
)
}xs',
- array(&$this, '_DoAnchors_inline_callback'), $text);
+ array(&$this, '_doAnchors_inline_callback'), $text);
#
# Last, handle reference-style shortcuts: [link text]
- # These must come last in case you've also got [link test][1]
- # or [link test](/foo)
+ # These must come last in case you've also got [link text][1]
+ # or [link text](/foo)
#
// $text = preg_replace_callback('{
// ( # wrap whole match in $1
@@ -1121,7 +1121,7 @@ function makeCodeSpan($code) {
function prepareItalicsAndBold() {
#
- # Prepare regular expressions for seraching emphasis tokens in any
+ # Prepare regular expressions for searching emphasis tokens in any
# context.
#
foreach ($this->em_relist as $em => $em_re) {
@@ -1156,7 +1156,7 @@ function doItalicsAndBold($text) {
$token_re = $this->em_strong_prepared_relist["$em$strong"];
#
- # Each loop iteration seach for the next emphasis token.
+ # Each loop iteration search for the next emphasis token.
# Each token is then passed to handleSpanToken.
#
$parts = preg_split($token_re, $text, 2, PREG_SPLIT_DELIM_CAPTURE);
@@ -1289,7 +1289,7 @@ function _doBlockQuotes_callback($matches) {
# These leading spaces cause problem with <pre> content,
# so we need to fix that:
$bq = preg_replace_callback('{(\s*<pre>.+?</pre>)}sx',
- array(&$this, '_DoBlockQuotes_callback2'), $bq);
+ array(&$this, '_doBlockQuotes_callback2'), $bq);
return "\n". $this->hashBlock("<blockquote>\n$bq\n</blockquote>")."\n\n";
}

0 comments on commit e5a7c78

Please sign in to comment.