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


Computer nonsense 

· · Web · 0 · 0 · 0
Sign in to participate in the conversation

The original server operated by the Mastodon gGmbH non-profit