From 1e34349513c0e6708d0ed506fffd8c0c78514a1b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 27 Jun 2020 16:45:36 -0400 Subject: [PATCH] fix regex used to build docs --- site/src/routes/docs/_sections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/routes/docs/_sections.js b/site/src/routes/docs/_sections.js index bb081a050b..3657ba85ac 100644 --- a/site/src/routes/docs/_sections.js +++ b/site/src/routes/docs/_sections.js @@ -85,7 +85,7 @@ export default function() { renderer.heading = (text, level, rawtext) => { let slug; - const match = /(.+)<\/a>/.exec(text); + const match = /]*>(.+)<\/a>/.exec(text); if (match) { slug = match[1]; text = match[2];