-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
25 lines (25 loc) · 970 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* Render Govspeak markup
*
* @param {object} [options] - Options for the extension
* @returns {object} A MarkedExtension to be passed to `marked.use()`
*/
module.exports = function (options = {}) {
return {
extensions: [
require('./lib/extensions/address')(options),
require('./lib/extensions/button')(options),
require('./lib/extensions/call-to-action')(options),
require('./lib/extensions/contact')(options),
require('./lib/extensions/form-download')(options),
require('./lib/extensions/example')(options),
require('./lib/extensions/information')(options),
require('./lib/extensions/information-callout')(options),
require('./lib/extensions/place')(options),
require('./lib/extensions/stat-headline')(options),
require('./lib/extensions/steps').steps(options),
require('./lib/extensions/steps').step(options),
require('./lib/extensions/warning-callout')(options)
]
}
}