src/renderers/markdown.js
function remarkHljs({ aliases }) {
	return ast =>
		visit(ast, 'code', node => {
			if (!node.data) {
				node.data = {};
			}

			const lang = node.lang;
			const highlighted = lang
				? low.highlight(aliases[lang] || lang, node.value).value
				: low.highlightAuto(node.value).value;
			node.data.hChildren = highlighted;
			node.data.hProperties = {
				className: ['hljs', lang && `language-${lang}`],
			};
		});
}
function remarkHljs({ aliases }) {
	return ast =>
		visit(ast, 'code', node => {
			if (!node.data) {
				node.data = {};
			}

			const lang = node.lang;
			const highlighted = lang
				? low.highlight(aliases[lang] || lang, node.value).value
				: low.highlightAuto(node.value).value;
			node.data.hChildren = highlighted;
			node.data.hProperties = {
				className: ['hljs', lang && `language-${lang}`],
			};
		});
}
Remark plugin for Highlight.js.

@param {Object} options
@return {Function}