'use strict';

var rehypeHighlight = require('rehype-highlight');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var rehypeHighlight__default = /*#__PURE__*/_interopDefaultLegacy(rehypeHighlight);

// @ts-ignore
function highlightSsr({ subset = false, ignoreMissing = true, ...rest } = {}) {
    return {
        rehype: (u) => u.use(rehypeHighlight__default['default'], { subset, ignoreMissing, ...rest }),
    };
}

module.exports = highlightSsr;
//# sourceMappingURL=index.cjs.js.map
