bump 1.3.1

This commit is contained in:
qingwei.li 2016-12-23 00:24:45 +08:00
commit 91b6720219
4 changed files with 4 additions and 4 deletions

View file

@ -2416,7 +2416,7 @@ renderer.code = function (code, lang) {
};
renderer.link = function (href, title, text) {
if (OPTIONS$1.router && !/^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/.test(href)) {
href = !/^\/#/.test(href) ? ("#" + href) : href;
href = !/^\/#/.test(href) ? ("#/" + (getRoute()) + href) : href;
}
return ("<a href=\"" + href + "\" title=\"" + (title || '') + "\">" + text + "</a>")