Skip to content

Commit

Permalink
fix template rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfrase3 committed Mar 5, 2024
1 parent 9d8c9da commit 3b51f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {compileTemplate, getRenderContext} = require('../../util/email/template.j
const marked = require('marked');

const compileMarkdown = (text) => {
return marked(text);
return marked.parse(text);
};

exports.NotificationsPreview = class NotificationsPreview {
Expand Down
2 changes: 1 addition & 1 deletion src/util/email/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
const marked = require('marked');

const compileMarkdown = (text) => {
return marked(text);
return marked.parse(text);
};

const fix = (name = '') => name.trim().replace(/\s+\(\d+\)$/, '');
Expand Down

0 comments on commit 3b51f17

Please sign in to comment.