Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1---
2 invalid:
3invalid:
4---
5
6
7
8<html><head></head><body></body></html>
9

After

1---
2[
3 ! should NOT format !
4because:
5this is INVALID yaml
6---
7
8<html><head></head><body></body></html>
9

Before

document
text "---\n invalid:\ninvalid:\n---"
element (+27 nodes collapsed)

After

document
text "---\n[\n ! should NOT format !\nbecause: \nthis is INVALID ya"...
element (+27 nodes collapsed)