Update DocDown.

Former-commit-id: ecb4c7428007bfb6b721000c81254a03c826b1ff
This commit is contained in:
John-David Dalton
2013-06-03 08:00:46 -07:00
parent e0891a2d71
commit 9b214d75df
2 changed files with 28 additions and 28 deletions

View File

@@ -121,7 +121,7 @@ class Generator {
$string = preg_replace('/(^|\s)(\([^)]+\))/', '$1*$2*', $string);
// mark numbers as inline code
$string = preg_replace('/ (-?\d+(?:.\d+)?)(?!\.[^\n])/', ' `$1`', $string);
$string = preg_replace('/[\t ](-?\d+(?:.\d+)?)(?!\.[^\n])/', ' `$1`', $string);
// detokenize inline code snippets
$counter = 0;
@@ -557,7 +557,7 @@ class Generator {
array_push($result, $closeTag, $closeTag, '', ' [1]: #' . $toc . ' "Jump back to the TOC."');
// cleanup whitespace
return trim(preg_replace('/ +\n/', "\n", join($result, "\n")));
return trim(preg_replace('/[\t ]+\n/', "\n", join($result, "\n")));
}
}
?>