From c61033fb1e711d534f351d1165fdc03a7e8ad4b0 Mon Sep 17 00:00:00 2001 From: Zjmainstay Date: Mon, 31 Mar 2014 10:43:48 +0800 Subject: [PATCH] Remove Chinese desc Remove Chinese desc --- markdown.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown.class.php b/markdown.class.php index ad9ee12..7ff88fc 100644 --- a/markdown.class.php +++ b/markdown.class.php @@ -92,7 +92,7 @@ function parseMarkdown($doc) { //a footnote if(preg_match_all('#\[\^(.*?)\]#is', $doc, $footnotes)) { - $footnoteTpl = '[%s]'; + $footnoteTpl = '[%s]'; $footnoteReplaced = array(); foreach($footnotes[0] as $key => $value) { $footnoteId = $footnotes[1][$key]; @@ -101,7 +101,7 @@ function parseMarkdown($doc) { $footnoteReplaced[$footnoteId] = true; $index = $key+1; $footnoteHash = sprintf('[%s] ', $footnoteId, $index); - $footnoteBack = sprintf('<-
', $footnoteId); + $footnoteBack = sprintf('<-
', $footnoteId); //match footnote by id if(preg_match(sprintf('#(\n)\[\^%s\]: (.*?)(?=\n)#is', $footnoteId), $doc, $footnote)) { //footnote link