]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: notes view: render node and guest notes as Markdown
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jun 2021 17:24:39 +0000 (19:24 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jun 2021 17:24:39 +0000 (19:24 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/panel/NotesView.js

index 86adee4d54305f57150ab1efbafd225b060cf7c2..b281f8926f87361c648d28a918aa7b67e1276c37 100644 (file)
@@ -3,7 +3,6 @@ Ext.define('PVE.panel.NotesView', {
     xtype: 'pveNotesView',
 
     title: gettext("Notes"),
-    bodyStyle: 'white-space:pre',
     bodyPadding: 10,
     scrollable: true,
     animCollapse: false,
@@ -46,7 +45,9 @@ Ext.define('PVE.panel.NotesView', {
            },
            success: function(response, opts) {
                var data = response.result.data.description || '';
-               me.update(Ext.htmlEncode(data));
+
+               let mdHTML = Proxmox.Markdown.parse(data);
+               me.update(mdHTML);
 
                if (me.collapsible && me.collapseMode === 'auto') {
                    me.setCollapsed(data === '');