mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:07:08 +00:00
The idea being that eventually we will symlink the lib/utils directory so that the same routines are available on both the frontend and the backend.
12 lines
228 B
JavaScript
12 lines
228 B
JavaScript
const { marked, parseInline } = require('marked');
|
|
|
|
function markdown (str) {
|
|
return marked(String(str));
|
|
}
|
|
|
|
function markdownInline (str) {
|
|
return parseInline(String(str));
|
|
}
|
|
|
|
module.exports = { markdown, markdownInline };
|