diff --git a/background.js b/background.js
index b4a26b5..476e294 100644
--- a/background.js
+++ b/background.js
@@ -3,6 +3,7 @@ const bookmarkAddId = 'bookmark-add';
const textReducer = (carry, item) => `${carry + item.url}\n`;
const markdownReducer = (carry, item) => `${carry}[${item.title}](${item.url})\n`;
const htmlReducer = (carry, item) => `${carry}${item.title}
\n`;
+const dokuwikiReducer = (carry, item) => `${carry}[[${item.url}|${item.title}]]\n`;
let downloadId = 0;
function notification(message) {
@@ -53,6 +54,12 @@ function getDownloadOptions(format) {
filename: 'linkdump.html',
type: 'text/html'
};
+ case 'dokuwiki':
+ return {
+ reducer: dokuwikiReducer,
+ filename: 'linkdump.dk',
+ type: 'text/plain'
+ };
default:
return {
reducer: textReducer,
diff --git a/manifest.json b/manifest.json
index 4cc679b..d238687 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,7 +7,7 @@
"manifest_version": 2,
"name": "LinkDump",
- "version": "1.5",
+ "version": "1.6",
"description": "__MSG_extensionDescription__",
"icons": {
"48": "icons/linkdump-48.png"
diff --git a/options/options.html b/options/options.html
index 5e58cf7..ed15fd5 100644
--- a/options/options.html
+++ b/options/options.html
@@ -9,9 +9,10 @@