10 lines
229 B
JavaScript
10 lines
229 B
JavaScript
const { contentAsText } = require('../helpers.js')
|
|
const marked = require('marked')
|
|
|
|
module.exports = async (doc, rootLevel) => {
|
|
return {
|
|
type: doc.head(),
|
|
text: marked.parse(await contentAsText(doc, rootLevel))
|
|
}
|
|
}
|