UNPKG

mdast-util-toc

Version:

Generate a Table of Contents (TOC) from a given Markdown file

9 lines (6 loc) 177 B
'use strict' module.exports = toExpression // Transform a string into an applicable expression. function toExpression(value) { return new RegExp('^(' + value + ')$', 'i') }