mirror of https://github.com/helloxz/MDtoHTML
补上副标题“MDtoHTML”
parent
97733de2d0
commit
9442d9c1d0
|
@ -35,7 +35,7 @@
|
||||||
// 设置网页标题为第一个H标签的内容
|
// 设置网页标题为第一个H标签的内容
|
||||||
var hText = $(":header:first").text(); // 取第一个标题(Hx)元素
|
var hText = $(":header:first").text(); // 取第一个标题(Hx)元素
|
||||||
if(hText.length > 0) {
|
if(hText.length > 0) {
|
||||||
$('title').text(hText); // 设置文档标题
|
$('title').text(hText + " - MDtoHTML"); // 设置文档标题
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue