mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-31 06:01:50 -05:00
8 lines
219 B
JavaScript
8 lines
219 B
JavaScript
const mdastToHtml = require('./mdast-to-html');
|
|
|
|
function getParagraphContent(node) {
|
|
return node.type === 'paragraph' ? mdastToHtml(node.children) : null;
|
|
}
|
|
|
|
module.exports.getParagraphContent = getParagraphContent;
|