You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

const memoize = require('micro-memoize');
const path = require('path');
const include = require('./remark-include');
const emoji = require('remark-emoji');
const paragraphAlerts = require('./remark-paragraph-alerts');
const images = require('remark-images');
const unwrapImages = require('remark-unwrap-images');
const slug = require('remark-slug');
const headingID = require('remark-heading-id');
const sectionize = require('remark-sectionize');
const customBlocks = require('./remark-custom-blocks');
const externalLinks = require('remark-external-links');
const remarkPlugins = [
[memoize(include), { resolveFrom: path.join(__dirname, '../src/includes') }],
memoize(paragraphAlerts),
memoize(emoji),
memoize(images),
memoize(unwrapImages),
memoize(slug),
memoize(headingID),
memoize(sectionize),
memoize(externalLinks),
[
customBlocks,
{
['page-reference']: {
containerElement: 'pagereference',
titleElement: 'span',
bodyElement: 'span',
title: 'optional',
},
},
],
];
module.exports = { remarkPlugins };