Describe the bug
- Document opens
- Table of contents is initialized
- Headings are parsed and get an id
- ids are added to heading nodes creating a transaction
- transaction updates document state leading to steps pushed even in read only mode.
To Reproduce
Steps to reproduce the behavior:
- Create a markdown file with headings and a public read only share of it
- observe network traffic
- Notice step send in one of the push requests
Expected behavior
Opening the document read only should not alter the state.
Screenshots
will attach later