Markdown note export (#2214)

This commit is contained in:
Martynas Bagdonas 2021-11-22 15:41:35 +02:00 committed by Dan Stillman
parent 63a0452a77
commit 19977598eb
17 changed files with 383 additions and 251 deletions

View file

@ -73,17 +73,6 @@ describe("Zotero.QuickCopy", function() {
assert.isTrue(worked);
assert.isTrue(content.trim().startsWith('@'));
});
it("should copy note content", async function () {
var item = await createDataObject('item', { itemType: 'note', note: '<p>Foo</p>' });
var format = 'bibliography=http://www.zotero.org/styles/apa';
Zotero.Prefs.set(prefName, format);
var content = Zotero.QuickCopy.getContentFromItems([item], format);
assert.propertyVal(content, 'text', 'Foo');
assert.propertyVal(content, 'html', '<div class=\"zotero-notes\"><div class=\"zotero-note\"><p>Foo</p></div></div>');
});
});
it("should generate bibliography in default locale if Quick Copy locale not set", async function () {