Skip to content

Commit

Permalink
Remove Chinese desc
Browse files Browse the repository at this point in the history
Remove Chinese desc
  • Loading branch information
Zjmainstay committed Mar 31, 2014
1 parent 3f885fc commit c61033f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions markdown.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function parseMarkdown($doc) {

//a footnote
if(preg_match_all('#\[\^(.*?)\]#is', $doc, $footnotes)) {
$footnoteTpl = '<a href="#fn:%s" id="fnref:%s" title="查看注脚" class="footnote">[%s]</a>';
$footnoteTpl = '<a href="#fn:%s" id="fnref:%s" title="go to footnote" class="footnote">[%s]</a>';
$footnoteReplaced = array();
foreach($footnotes[0] as $key => $value) {
$footnoteId = $footnotes[1][$key];
Expand All @@ -101,7 +101,7 @@ function parseMarkdown($doc) {
$footnoteReplaced[$footnoteId] = true;
$index = $key+1;
$footnoteHash = sprintf('<span id="fn:%s">[%s] </span>', $footnoteId, $index);
$footnoteBack = sprintf('<a class="reversefootnote" title="回到文稿" href="#fnref:%s"><-</a><br>', $footnoteId);
$footnoteBack = sprintf('<a class="reversefootnote" title="go back to content" href="#fnref:%s"><-</a><br>', $footnoteId);
//match footnote by id
if(preg_match(sprintf('#(\n)\[\^%s\]: (.*?)(?=\n)#is', $footnoteId), $doc, $footnote)) {
//footnote link
Expand Down

0 comments on commit c61033f

Please sign in to comment.