Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fixed markdown exports

ammarahm-ed8c5c0072ceb8
diff --git a/apps/mobile/android/app/src/main/assets/constants.js b/apps/mobile/android/app/src/main/assets/constants.js
index 1fb38cde8..674baa2e3 100644
--- a/apps/mobile/android/app/src/main/assets/constants.js
+++ b/apps/mobile/android/app/src/main/assets/constants.js
@@ -33,7 +33,7 @@ const markdownPatterns = [
{start: '######', format: 'h6'},
{start: '* ', cmd: 'InsertUnorderedList'},
{start: '- [ ] ', cmd: 'InsertCheckList'},
- {start: '- [x] ', cmd: 'InsertCheckList',value:"checked"},
+ {start: '- [x] ', cmd: 'InsertCheckList', value: 'checked'},
{start: '- ', cmd: 'InsertUnorderedList'},
{start: '> ', format: 'blockquote'},
{
@@ -235,11 +235,6 @@ function setTheme() {
outline: 3px solid ${pageTheme.colors.shade} !important;
}
-#mceResizeHandlese {
- height: 40px !important;
- width: 40px !important;
- border-radius:100px !important;
-}
.mce-content-body div.mce-resizehandle {
background-color: ${pageTheme.colors.accent} !important;
@@ -247,12 +242,21 @@ function setTheme() {
border-style: solid;
border-width: 1px;
box-sizing: border-box;
- height: 10px;
+ height: 30px !important;
position: absolute;
- width: 10px;
+ width: 30px !important;
z-index: 10000;
+ opacity:0.5;
}`;
+ /*
+
+#mceResizeHandlese {
+ height: 40px !important;
+ width: 40px !important;
+ border-radius:100px !important;
+} */
+
let editorHead = tinymce.activeEditor.contentDocument.getElementsByTagName(
'head',
)[0];
diff --git a/apps/mobile/html/Web.bundle/site/constants.js b/apps/mobile/html/Web.bundle/site/constants.js
index 24f16fe16..59e6fe81c 100644
--- a/apps/mobile/html/Web.bundle/site/constants.js
+++ b/apps/mobile/html/Web.bundle/site/constants.js
@@ -233,22 +233,17 @@ function setTheme() {
outline: 3px solid ${pageTheme.colors.shade} !important;
}
-#mceResizeHandlese {
- height: 40px !important;
- width: 40px !important;
- border-radius:100px !important;
-}
-
.mce-content-body div.mce-resizehandle {
background-color: ${pageTheme.colors.accent} !important;
border-color: ${pageTheme.colors.accent} !important;
border-style: solid;
border-width: 1px;
box-sizing: border-box;
- height: 10px;
+ height: 30px !important;
position: absolute;
- width: 10px;
+ width: 30px !important;
z-index: 10000;
+ opacity:0.5;
}`;
let editorHead = tinymce.activeEditor.contentDocument.getElementsByTagName(
diff --git a/apps/mobile/src/services/Exporter.js b/apps/mobile/src/services/Exporter.js
index 5c52b876a..b650beac8 100644
--- a/apps/mobile/src/services/Exporter.js
+++ b/apps/mobile/src/services/Exporter.js
@@ -61,6 +61,7 @@ async function saveToMarkdown(note) {
RNFetchBlob = require('rn-fetch-blob').default;
let converter = new showdown.Converter();
+ converter.setFlavor("original");
let dom = jsdom.html();
let content = await db.notes.note(note.id).content();
let markdown = converter.makeMarkdown(content, dom);