fix regex used to build docs

pull/7738/head
Rich Harris 5 years ago
parent fcf2f9f51b
commit 1e34349513

@ -85,7 +85,7 @@ export default function() {
renderer.heading = (text, level, rawtext) => { renderer.heading = (text, level, rawtext) => {
let slug; let slug;
const match = /<a href="([^"]+)">(.+)<\/a>/.exec(text); const match = /<a href="([^"]+)"[^>]*>(.+)<\/a>/.exec(text);
if (match) { if (match) {
slug = match[1]; slug = match[1];
text = match[2]; text = match[2];

Loading…
Cancel
Save