I'm reading JSON objects with jq
and appending the value of fields to another file like so:
curl $JSON| jq '.body' | tee -a page1.md
This works great, however the markdown I'm extracting from the curl command is not formatting itself in page1.md
. It's just appending, and not taking into account markdown styles such as ###
which would bold text.
For example, the line below is exactly what the command above is appending during a test run... Notice the quotes at the start and end of the line. All of this is outputted onto one line, ruining the integrity of the original markdown format extracted from the curl originally.
"###test test test \r\n**test test **\r\n\r\n> test test test test\r\n\r\n\r\test test test\n"
How can I append this text for markdown to read the formatting styles? I think the quotes are causing the problem?