[SOLVED] PVE 7.1.8 - notes formatting

czechsys

Renowned Member
Nov 18, 2015
419
43
93
Tab notes has broken formatting. I restored VM from PVE6.4 to 7.1 with such notes:

In edit panel are those lines line by line.
Code:
root
IP
vg0 - root 8G, swap 2G
v20210914

In view panel are those lines all on one line.
Code:
root IP vg0 - root 8G, swap 2G v20210914

Clearing notes to empy->save->reenter lines from notepad (no formatting used, only ENTERs)->same problem.

Code:
proxmox-ve: 7.1-1 (running kernel: 5.13.19-2-pve)
pve-manager: 7.1-8 (running version: 7.1-8/5b267f33)
pve-kernel-helper: 7.1-6
pve-kernel-5.13: 7.1-5
pve-kernel-5.13.19-2-pve: 5.13.19-4
ceph-fuse: 15.2.15-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.1-5
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-14
libpve-guest-common-perl: 4.0-3
libpve-http-server-perl: 4.0-4
libpve-storage-perl: 7.0-15
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.11-1
lxcfs: 4.0.11-pve1
novnc-pve: 1.3.0-1
openvswitch-switch: 2.15.0+ds1-2
proxmox-backup-client: 2.1.2-1
proxmox-backup-file-restore: 2.1.2-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.4-4
pve-cluster: 7.1-3
pve-container: 4.1-3
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.3-4
pve-ha-manager: 3.3-1
pve-i18n: 2.6-2
pve-qemu-kvm: 6.1.0-3
pve-xtermjs: 4.12.0-1
qemu-server: 7.1-4
smartmontools: 7.2-1
spiceterm: 3.2-2
swtpm: 0.7.0~rc1+2
vncterm: 1.7-1
zfsutils-linux: 2.1.1-pve3
 
or with an empty line in between ;)
 
Hi, the two spaces doesnt work after saving, the two spaces are removed and is no line break.
Also if I add a line in between it then shows that line in between.

Why the switch to markdown? It was perfect before.

I had to add a load of <br> as if I was typing html code, I think adding an option to keep this as dumb text format would be nice.

Further update, the two spaces works on virtual machine notes, but not on the notes for the machine, its the latter I had to add <br>. In addition all lines starting with a comment are enlarged and bold, with the # symbol not displayed.

It is over complicated as I have loads of symbols etc. which were completely wrecked by this feature, not all of us know markdown syntax.

The good news is I found a way to effectively disable it.

Start the notes as first line with
```
also last line as
```
Then it is treated as simple text, no html code, no double spaces, no escapes needed.
 
Last edited:
it doesnt work at all - at least not like shown
in the picture are 3 parts:
1. the finally result on Proxmox (on datacenter, node and VM - all the same output)
2. an online markdown editior which shows the formating
3. how i wrote it
between 1 and 3 are some differences. but i guess we need to figure out by ourself how to align and how to make the table properties
 

Attachments

  • MOKUP.JPG
    MOKUP.JPG
    62.7 KB · Views: 106
@pille99 it's just the styling that's different (tables in the PVE UI use zebra coloring - i.e., every second row has a different background), and markdown doesn't say much about that (it's a way to encode structure, not exact looks).

@chrcoluk because it was often requested, and markdown is the most common format for structuring/formatting simple text on the web. like you already found out, you can use pre-/un-formatted text by telling the markdown renderer your note content is just that ;)
 
It's not working. Whatever Proxmox uses in it's Notes, it's not called "Markdown", it's called " a mess".

:-(
 
Chris, have you tried html?

for example

Code:
<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>

in czechsys example it should be like this
Code:
root<br>
IP<br>
vg0 - root 8G, swap 2G<br>
v20210914

And if you want BOLD
Code:
# Some bold text

A simple note: at the moment I don't have PVE 7, only PVE 8, but both of them have a web interface
 
Last edited:
yeah, it's working with html, but that is really not what i'm locking for. Writting html code is a bit to much additional work as i would like to invest and it would make copy&paste from & to our ticket system a pain.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!