Browse Source

Merge pull request #2 from xhwsd/master

补上副标题“MDtoHTML”
master
Mr.zou 6 years ago committed by GitHub
parent
commit
730d60543b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      style.php

2
style.php

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

Loading…
Cancel
Save