Skip to content

Commit

Permalink
disabled markdown in export
Browse files Browse the repository at this point in the history
  • Loading branch information
antelle committed May 15, 2020
1 parent 346d6cb commit 451b465
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
15 changes: 3 additions & 12 deletions app/scripts/comp/format/kdbx-to-html.js
Expand Up @@ -17,7 +17,7 @@ const FieldMapping = [
{ name: 'UserName', locStr: 'user' },
{ name: 'Password', locStr: 'password', protect: true },
{ name: 'URL', locStr: 'website' },
{ name: 'Notes', locStr: 'notes', markdown: true }
{ name: 'Notes', locStr: 'notes' }
];

const KnownFields = { 'Title': true };
Expand All @@ -42,21 +42,12 @@ function walkEntry(db, entry, parents) {
const path = parents.map(group => group.name).join(' / ');
const fields = [];
for (const field of FieldMapping) {
let value = entryField(entry, field.name);
const value = entryField(entry, field.name);
if (value) {
let html = false;
if (field.markdown && AppSettingsModel.useMarkdown) {
const converted = MdToHtml.convert(value);
if (converted.html) {
value = converted.html;
html = true;
}
}
fields.push({
title: StringFormat.capFirst(Locale[field.locStr]),
value,
protect: field.protect,
html
protect: field.protect
});
}
}
Expand Down
6 changes: 1 addition & 5 deletions app/templates/export/entry.hbs
Expand Up @@ -9,11 +9,7 @@
{{#if field.protect}}
<code>{{field.value}}</code>
{{else}}
{{#if field.html}}
{{{field.value}}}
{{else}}
{{field.value}}
{{/if}}
{{field.value}}
{{/if}}
</td>
</tr>
Expand Down
3 changes: 3 additions & 0 deletions release-notes.md
@@ -1,5 +1,8 @@
Release notes
-------------
##### v1.14.3 (2020-05-15)
`*` disabled markdown in export

##### v1.14.2 (2020-05-04)
`-` distinct redirect URIs for storage providers

Expand Down

0 comments on commit 451b465

Please sign in to comment.