Skip to content
Browse files

Fixes #279

git-svn-id: http://yii.googlecode.com/svn/trunk@3593 c7f931c7-7552-0410-b027-2fb3d89d9100
  • Loading branch information...
1 parent 58dd3b3 commit 50e2cb8bf426dd5e549790a218ede6dd36a6be07 @qiangxue qiangxue committed Feb 19, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 build/commands/markdown/MarkdownHtml2Tex.php
View
6 build/commands/markdown/MarkdownHtml2Tex.php
@@ -184,6 +184,12 @@ function make_link($matches)
$href = str_replace('#', '-', $href);
return sprintf('\hyperref[%s]{%s}', $this->escape($href), $this->escape($matches[2]));
}
+ else if (strpos($matches[1], '/doc/blog/')===0)
+ {
+ $href = str_replace('/doc/blog/','',$matches[1]);
+ $href = str_replace('#', '-', $href);
+ return sprintf('\hyperref[%s]{%s}', $this->escape($href), $this->escape($matches[2]));
+ }
}
function make_sections($matches)

0 comments on commit 50e2cb8

Please sign in to comment.
Something went wrong with that request. Please try again.