Merge pull request #2 from xhwsd/master

补上副标题“MDtoHTML”
master
Mr.zou 2018-12-13 22:32:45 +08:00 committed by GitHub
commit 730d60543b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
// 设置网页标题为第一个H标签的内容
var hText = $(":header:first").text(); // 取第一个标题Hx元素
if(hText.length > 0) {
$('title').text(hText); // 设置文档标题
$('title').text(hText + " - MDtoHTML"); // 设置文档标题
}
});
</script>