Having a HTML element, I’m currently using the formatting.js function from here to format code that is not properly indented.
https://codemirror.net/2/lib/util/formatting.js
It works pretty well, but now I would like to see if I can go one step forward and always place text nodes in a new linee.
So instead of having:
<p>Hello there
</p>
I would like to havee:
<p>
Hello there
</p>
Does this sound like something possible with codemirror?