Ah sorry that comma I fixed. I was trying to see whether the position of the .Content line had some effect but it did not. JSON.parse complaint message is this:
Uncaught SyntaxError: JSON.parse: bad control character in string literal at line 12 column 336 of the JSON data
where the literal is indeed a line break. If I add jsonify then it generates extra commas:
“content”: ““Agra is home …centuries.\n””
The standard data is output like this (i.e. a line break):
"Agra is home … centuries.
",
I also tried {{ substr .Content 0 -2 | plainify }} to get rid of the line break but that was not allowed: error calling substr: calculated start position greater than end position: 0 > -2
Odd as the latter comes straight from the docs and I am pretty sure it works in a regular template layout