mirror of https://github.com/keeweb/keeweb.git
disabled markdown in export
This commit is contained in:
parent
346d6cb119
commit
451b465e4f
|
@ -17,7 +17,7 @@ const FieldMapping = [
|
||||||
{ name: 'UserName', locStr: 'user' },
|
{ name: 'UserName', locStr: 'user' },
|
||||||
{ name: 'Password', locStr: 'password', protect: true },
|
{ name: 'Password', locStr: 'password', protect: true },
|
||||||
{ name: 'URL', locStr: 'website' },
|
{ name: 'URL', locStr: 'website' },
|
||||||
{ name: 'Notes', locStr: 'notes', markdown: true }
|
{ name: 'Notes', locStr: 'notes' }
|
||||||
];
|
];
|
||||||
|
|
||||||
const KnownFields = { 'Title': true };
|
const KnownFields = { 'Title': true };
|
||||||
|
@ -42,21 +42,12 @@ function walkEntry(db, entry, parents) {
|
||||||
const path = parents.map(group => group.name).join(' / ');
|
const path = parents.map(group => group.name).join(' / ');
|
||||||
const fields = [];
|
const fields = [];
|
||||||
for (const field of FieldMapping) {
|
for (const field of FieldMapping) {
|
||||||
let value = entryField(entry, field.name);
|
const value = entryField(entry, field.name);
|
||||||
if (value) {
|
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({
|
fields.push({
|
||||||
title: StringFormat.capFirst(Locale[field.locStr]),
|
title: StringFormat.capFirst(Locale[field.locStr]),
|
||||||
value,
|
value,
|
||||||
protect: field.protect,
|
protect: field.protect
|
||||||
html
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,11 +9,7 @@
|
||||||
{{#if field.protect}}
|
{{#if field.protect}}
|
||||||
<code>{{field.value}}</code>
|
<code>{{field.value}}</code>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if field.html}}
|
{{field.value}}
|
||||||
{{{field.value}}}
|
|
||||||
{{else}}
|
|
||||||
{{field.value}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
Release notes
|
Release notes
|
||||||
-------------
|
-------------
|
||||||
|
##### v1.14.3 (2020-05-15)
|
||||||
|
`*` disabled markdown in export
|
||||||
|
|
||||||
##### v1.14.2 (2020-05-04)
|
##### v1.14.2 (2020-05-04)
|
||||||
`-` distinct redirect URIs for storage providers
|
`-` distinct redirect URIs for storage providers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue