misc: minor edits to prep for markdown feature

This commit is contained in:
Aetherinox 2024-04-25 20:17:58 -07:00
parent 7c70661bfd
commit 8cd8b28011
No known key found for this signature in database
GPG Key ID: CB5C4C30CD0D4028
5 changed files with 12 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -186,7 +186,9 @@ module.exports = function (options) {
options: {
esModule: false,
importLoaders: 2,
sourceMap: !devMode
sourceMap: !devMode,
url: true,
import: true
}
},
{