tasks/start.js
function formatFeature(feature) {
	return Object.assign({}, feature, {
		// format title using marked inline lexer
		title: marked.inlineLexer(feature.title, [], {}),
		// format description using marked inline lexer
		description: marked.inlineLexer(feature.description, [], {}),
		// format example as syntax-highlighted html
		example: postcss().process(feature.example, {
			stringifier: postcssToHTML
		}).css,
		caniuse: 'caniuse-compat' in feature
			? { stats: feature['caniuse-compat'] }
		: feature.caniuse in caniuse.features
			? trimCaniuseFeatures(caniuse.feature(caniuse.features[feature.caniuse]))
		: false,
		caniuseURL: feature.caniuse
	});
}
function formatFeature(feature) {
	return Object.assign({}, feature, {
		// format title using marked inline lexer
		title: marked.inlineLexer(feature.title, [], {}),
		// format description using marked inline lexer
		description: marked.inlineLexer(feature.description, [], {}),
		// format example as syntax-highlighted html
		example: postcss().process(feature.example, {
			stringifier: postcssToHTML
		}).css,
		caniuse: 'caniuse-compat' in feature
			? { stats: feature['caniuse-compat'] }
		: feature.caniuse in caniuse.features
			? trimCaniuseFeatures(caniuse.feature(caniuse.features[feature.caniuse]))
		: false,
		caniuseURL: feature.caniuse
	});
}
function formatFeature ( feature ) { return Object . assign ( { } , feature , { // format title using marked inline lexer title : marked . inlineLexer ( feature . title , [ ] , { } ) , // format description using marked inline lexer description : marked . inlineLexer ( feature . description , [ ] , { } ) , // format example as syntax-highlighted html example : postcss ( ) . process ( feature . example , { stringifier : postcssToHTML } ) . css , caniuse : 'caniuse-compat' in feature ? { stats : feature [ 'caniuse-compat' ] } : feature . caniuse in caniuse . features ? trimCaniuseFeatures ( caniuse . feature ( caniuse . features [ feature . caniuse ] ) ) : false , caniuseURL : feature . caniuse } ) ; }
format feature for HTML output
format feature for HTML output