// vendor
var markdown = require('marked-sections');

module.exports = convertMarkdown;

markdown.setOptions({
	levels: 2,
	heirarchy: true,
	promoteHr: false,
	gfm: true,
	sanitize: true,
	tables: true,
	breaks: false,
	pedantic: false,
	smartLists: true,
	smartypants: true
});

function convertMarkdown(md, singleWrap) {
	return markdown.parse(md, { heirarchy: singleWrap ? false : true });
}
// vendor
var markdown = require('marked-sections');

module.exports = convertMarkdown;

markdown.setOptions({
	levels: 2,
	heirarchy: true,
	promoteHr: false,
	deep: true,
	gfm: true,
	sanitize: true,
	tables: true,
	breaks: false,
	pedantic: false,
	smartLists: true,
	smartypants: true
});

function convertMarkdown(md, singleWrap) {
	return markdown.parse(md, { heirarchy: singleWrap ? false : true });
}
Add deep option