Skip to content

Commit 458013b

Browse files
author
Spazcool
committed
FIX: markdown now works on howto, details & troubleshooting
1 parent f5a38cc commit 458013b

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

app.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,13 @@ app.get('/:uuid', (req, res) => {
6868
return;
6969
}
7070
logScanned(req.params.uuid, matches[0].fixture);
71+
matches[0].HOWTO = marked(matches[0].HOWTO);
72+
matches[0].details = marked(matches[0].details);
73+
matches[0].Troubleshooting = marked(matches[0].Troubleshooting);
7174
matches[0].similarItems = searchDatabase({ fixture: matches[0].fixture }, allItems)
7275
.filter(item => item.uuid !== matches[0].uuid)
7376
.splice(0, 3);
74-
// const mark = marked(matches[0].HOWTO)
75-
// function markItUp(a) {
76-
// return {__html: a};
77-
// }
78-
// <%- __html %>
79-
// res.render('notFound', markItUp(mark));
80-
res.render('item', matches[0]);;
77+
res.render('item', matches[0]);
8178
});
8279
});
8380

0 commit comments

Comments
 (0)