This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化marked对H1-H6的解析

old
宇天 2017-09-16 18:58:17 +08:00
parent 62074f4ab5
commit e01081fdde
1 changed files with 1 additions and 0 deletions

View File

@ -865,6 +865,7 @@ Renderer.prototype.html = function(html) {
};
Renderer.prototype.heading = function(text, level, raw) {
raw = text.replace(/<[^>]+>|<\/[^>]+>/g, '')
return '<h'
+ level
+ ' class="md-hd" id="'