Add 'Copy as Markdown' action

Remove smart quotes from Markdown export, closes #5303
This commit is contained in:
Tom Moor
2023-12-09 15:00:33 -05:00
parent f9c3b0e193
commit 3f3d7b4978
5 changed files with 55 additions and 13 deletions

View File

@@ -536,13 +536,8 @@ router.post(
contentType = "text/markdown";
content = DocumentHelper.toMarkdown(document);
} else {
contentType = "application/json";
content = DocumentHelper.toMarkdown(document);
}
if (contentType === "application/json") {
ctx.body = {
data: content,
data: DocumentHelper.toMarkdown(document),
};
return;
}