fix: typo in filteredToc

This commit is contained in:
Timothy Lin 2021-08-08 16:43:17 +08:00
parent d45233e43a
commit 08fb1d4690

View File

@ -34,7 +34,7 @@ const TOCInline = ({
const filteredToc = toc.filter( const filteredToc = toc.filter(
(heading) => (heading) =>
heading.depth >= fromHeading && heading.depth <= toHeading ** !re.test(heading.value) heading.depth >= fromHeading && heading.depth <= toHeading && !re.test(heading.value)
) )
const tocList = ( const tocList = (