Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #355 from resurtm/master

Fixes #279
  • Loading branch information...
commit e176528e6813fdc9c8d6aeb8ed2cab24dc2600b9 2 parents 7d98d9d + 9152c7a
@qiangxue qiangxue authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.