How to insert a line break
in markdown

前端 未结 3 1984
故里飘歌
故里飘歌 2021-01-31 12:57

I\'m trying to create a markdown file with some paragraphs containing both a link and a line of text on the next line. The problem I\'ve encountered is that when I make a new li

3条回答
  •  心在旅途
    2021-01-31 13:52

    Just adding a new line worked for me if you're to store the markdown in a JavaScript variable. like so

    let markdown = `
        1. Apple
        2. Mango
         this is juicy
        3. Orange
    `
    

提交回复
热议问题