Specifically newline before text.
const {readFileSync} = require('fs')
const reshape = require('reshape')
const sugarml = require('sugarml')
const beautify = require('reshape-beautify')
reshape({ parser: sugarml, plugins: beautify() })
.process(readFileSync('./index.sgr', 'utf8'))
.then((result) => console.log(result.output()))
$ node test.js
<p>
x
</p>
Specifically newline before text.
test.js
index.sgr
When I run it:
It should be: