CharlesMangwa / react-native-simple-markdown

📜 React Native Markdown component (iOS & Android).
https://www.npmjs.com/package/react-native-simple-markdown
MIT License
414 stars 134 forks source link

Insert blank line? #98

Open brownieboy opened 6 years ago

brownieboy commented 6 years ago

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

marvinernst commented 6 years ago

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>
dennisbouwpas commented 3 years ago

@marvinernst Thanks a lot man! That solved my issue