UNPKG

front-matter-markdown

Version:

get the config and toc object from the markdown string.

10 lines (8 loc) 285 B
isFunction = require('util-ex/lib/is/type/function') isIn = require('util-ex/lib/is/in') module.exports = (headings, filter)-> (heading)-> result = true result = filter(heading) if isFunction filter result = !isIn(heading, headings) if result result