0

I have a text column in our database(postgresql if that matters) that is then rendered using markdown. I want that text column to represent an unordered list, which means I need to somehow add a linebreak(\n) inside my string to workaround that. Ive tried this answer: Mimic a newline in Markdown with no success, the markdown string ive entered is:

- One  \n- Two  \n- Three  \n- Four

and the rendered output is:

enter image description here

The markdown is rendered using a react library called "simple-markdown" any idea how to workaround this?

Omri Shneor
  • 965
  • 3
  • 18
  • 34

1 Answers1

0

HTML is compatible with some markdown tools.

<ul><li>One</li><li>Two</li><li>Three</li><li>Four</li></ul>

Output:

  • One
  • Two
  • Three
  • Four
johann
  • 139
  • 11