mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-12 23:45:57 +00:00
Created new wrapper for my markdown parser, added it to the print page
This commit is contained in:
@@ -108,7 +108,7 @@ app.get('/share/:id', function(req, res){
|
||||
});
|
||||
|
||||
//Print Page
|
||||
var Markdown = require('marked');
|
||||
var Markdown = require('naturalcrit/markdown.js');
|
||||
var PHBStyle = '<style>' + require('fs').readFileSync('./phb.standalone.css', 'utf8') + '</style>'
|
||||
app.get('/print/:id', function(req, res){
|
||||
HomebrewModel.find({shareId : req.params.id}, function(err, objs){
|
||||
@@ -120,7 +120,7 @@ app.get('/print/:id', function(req, res){
|
||||
}
|
||||
|
||||
var content = _.map(brew.text.split('\\page'), function(pageText){
|
||||
return '<div class="phb print">' + Markdown(pageText) + '</div>';
|
||||
return '<div class="phb print">' + Markdown.render(pageText) + '</div>';
|
||||
}).join('\n');
|
||||
|
||||
var dialog = '';
|
||||
|
||||
Reference in New Issue
Block a user