1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-22 18:18:58 +00:00
git-tips/.doxie.render.js

20 lines
283 B
JavaScript
Raw Permalink Normal View History

2015-07-15 11:01:27 +00:00
function escapeStr(str) {
return str
.replace(/\"/g, '\\"')
.replace(/\n/g, '\\n');
}
var render = function(data) {
var data = data.data;
return [
'## ' + data.title,
'```sh',
data.tip,
'```',
'\n'
].join('\n');
};
module.exports = render;