react-native-simple-markdown icon indicating copy to clipboard operation
react-native-simple-markdown copied to clipboard

Insert blank line?

Open brownieboy opened this issue 6 years ago • 2 comments

I'm unable to insert a blank line in my markdown.

I've read through all the issues here, and have tried \n\n followed by two spaces and every other possible combination it seems, but nothing works for me.

Here's what I currently have: **Title**\nThe blurb\n\n **Second title**\n\nSecond blurb

I want to insert a blank line between "The Blurb" and "Second title", but it always renders like so: screen shot 2018-06-09 at 2 53 46 pm

brownieboy avatar Jun 09 '18 04:06 brownieboy

I had the same problem. Overwriting the default paragraph style solved the issue for me.

<Markdown
   styles={{
      paragraph: {
      flexWrap: 'wrap',
       flexDirection: 'row',
       alignItems: 'flex-start',
       justifyContent: 'flex-start',
       marginBottom: 32,
       },
    }}
>
  {content}
</Markdown>

marvinernst avatar Aug 29 '18 12:08 marvinernst

@marvinernst Thanks a lot man! That solved my issue

dennisbouwpas avatar Mar 01 '21 15:03 dennisbouwpas