disabled markdown in export

This commit is contained in:
antelle 2020-05-09 15:25:11 +02:00
parent ec9422d22d
commit 154c780281
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
3 changed files with 5 additions and 17 deletions

View File

@ -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 };
@ -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
});
}
}

View File

@ -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>

View File

@ -7,6 +7,7 @@ Release notes
`*` #1471: WebDAV url validation, only HTTPS is allowed
`+` #1350: clearing master password after auto lock period
`-` fix #1463: copying the original url instead of adding https:
`*` disabled markdown in export
##### v1.14.2 (2020-05-04)
`-` distinct redirect URIs for storage providers