mirror of
https://github.com/markedjs/marked
synced 2024-11-23 01:38:57 +00:00
Replace tabs with spaces
This commit is contained in:
parent
11f1645d51
commit
9f1342f668
@ -26,11 +26,11 @@ renderer.heading = function (text, level) {
|
||||
var escapedText = text.toLowerCase().replace(/[^\w]+/g, '-');
|
||||
|
||||
return `<h${level}>
|
||||
<a name="'${escapedText}'" class="anchor" href="#${escapedText}">
|
||||
<span class="header-link"></span>
|
||||
</a>
|
||||
${text}
|
||||
</h${level}>`;
|
||||
<a name="'${escapedText}'" class="anchor" href="#${escapedText}">
|
||||
<span class="header-link"></span>
|
||||
</a>
|
||||
${text}
|
||||
</h${level}>`;
|
||||
};
|
||||
|
||||
// Run marked
|
||||
|
Loading…
Reference in New Issue
Block a user