fix regex used to build docs

pull/5090/head
Rich Harris 4 years ago
parent ab370963f5
commit 82b1025d44

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

Loading…
Cancel
Save