mirror of https://github.com/keeweb/keeweb.git
misc: minor edits to prep for markdown feature
This commit is contained in:
parent
7c70661bfd
commit
8cd8b28011
|
@ -2,6 +2,8 @@ const IconMap = [
|
|||
'key',
|
||||
'globe',
|
||||
'triangle-exclamation',
|
||||
'note-sticky',
|
||||
'lightbulb',
|
||||
'server',
|
||||
'thumbtack',
|
||||
'comments',
|
||||
|
@ -10,6 +12,7 @@ const IconMap = [
|
|||
'plug',
|
||||
'address-card',
|
||||
'paperclip',
|
||||
'markdown',
|
||||
'camera',
|
||||
'wifi',
|
||||
'link',
|
||||
|
|
|
@ -24,7 +24,7 @@ class FieldViewText extends FieldView {
|
|||
if (value && value.isProtected) {
|
||||
value = value.getText();
|
||||
}
|
||||
const converted = MdToHtml.convert(value);
|
||||
const converted = MdToHtml.convert(value, true, false);
|
||||
if (converted.html) {
|
||||
return converted.html;
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
|
||||
/*
|
||||
Required if user hides / shows passphrases.
|
||||
dots need to be wrapped in textfarea
|
||||
dots need to be wrapped in textarea
|
||||
*/
|
||||
|
||||
.__pass-hidden {
|
||||
|
|
|
@ -141,6 +141,9 @@ $fa-var-info: next-fa-glyph();
|
|||
$fa-var-circle-info: next-fa-glyph();
|
||||
$fa-var-key: next-fa-glyph();
|
||||
$fa-var-globe: next-fa-glyph();
|
||||
$fa-var-note-sticky: next-fa-glyph();
|
||||
$fa-var-note-sticky-o: next-fa-glyph();
|
||||
$fa-var-lightbulb: next-fa-glyph();
|
||||
$fa-var-triangle-exclamation: next-fa-glyph();
|
||||
$fa-var-circle-exclamation: next-fa-glyph();
|
||||
$fa-var-thumbtack: next-fa-glyph();
|
||||
|
@ -149,6 +152,7 @@ $fa-var-pen-to-square: next-fa-glyph();
|
|||
$fa-var-plug: next-fa-glyph();
|
||||
$fa-var-newspaper: next-fa-glyph();
|
||||
$fa-var-paperclip: next-fa-glyph();
|
||||
$fa-var-markdown: next-fa-glyph();
|
||||
$fa-var-camera: next-fa-glyph();
|
||||
$fa-var-wifi: next-fa-glyph();
|
||||
$fa-var-link: next-fa-glyph();
|
||||
|
@ -182,8 +186,6 @@ $fa-var-clock: next-fa-glyph();
|
|||
$fa-var-magnifying-glass: next-fa-glyph();
|
||||
$fa-var-flask: next-fa-glyph();
|
||||
$fa-var-gamepad: next-fa-glyph();
|
||||
$fa-var-note-sticky: next-fa-glyph();
|
||||
$fa-var-note-sticky-o: next-fa-glyph();
|
||||
$fa-var-circle-question: next-fa-glyph();
|
||||
$fa-var-cube: next-fa-glyph();
|
||||
$fa-var-folder-o: next-fa-glyph();
|
||||
|
|
|
@ -186,7 +186,9 @@ module.exports = function (options) {
|
|||
options: {
|
||||
esModule: false,
|
||||
importLoaders: 2,
|
||||
sourceMap: !devMode
|
||||
sourceMap: !devMode,
|
||||
url: true,
|
||||
import: true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue