Follow

Computer nonsense 

Markdown parser wasn't honoring new-lines saved as \n in a text field in our database.

Took a while to figure the answer, but the solution was literally:

text.replace("\\n", "\n")

i.e. replace \n with \n

· · Web · 1 · 0 · 4
Sign in to participate in the conversation
Aus.Social

Welcome to thundertoot! A Mastodon Instance for 'straya