ep_markdown
Advanced tools
Comparing version 0.0.10 to 0.1.0
@@ -424,13 +424,10 @@ /** | ||
exports.getPadMarkdownDocument = function (padId, revNum, callback) | ||
exports.getPadMarkdownDocument = async function (padId, revNum, callback) | ||
{ | ||
padManager.getPad(padId, function (err, pad) | ||
var pad = await padManager.getPad(padId) | ||
getPadMarkdown(pad, revNum, function (err, Markdown) | ||
{ | ||
if(ERR(err, callback)) return; | ||
getPadMarkdown(pad, revNum, function (err, Markdown) | ||
{ | ||
if(ERR(err, callback)) return; | ||
callback(null, Markdown); | ||
}); | ||
callback(null, Markdown); | ||
}); | ||
@@ -437,0 +434,0 @@ } |
@@ -9,2 +9,3 @@ var exportMarkdown = require('./exportMarkdown'); | ||
exportMarkdown.getPadMarkdownDocument(padID, revision, function(err, result) { | ||
res.setHeader('Content-disposition', 'attachment; filename='+padID+'.md'); | ||
res.contentType('plain/text'); | ||
@@ -11,0 +12,0 @@ res.send(result); |
{ | ||
"name": "ep_markdown", | ||
"description": "Edit and Export as Markdown in Etherpad", | ||
"version": "0.0.10", | ||
"version": "0.1.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "John McLear", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33031
16
756