Skip to content

Line break does not work #268

@thongdong7

Description

@thongdong7

Hi guys.

Thank you for your time to develop this awesome library.

I'm recently figure out that the line break in markdown is not rendered correctly. Example:

<MarkdownPreview
   source={`
Hello.
World

    `}
        style={{ padding: 16 }}
      />

will render

Hello. World

instead of

Hello. 
World

Do you know how to fix it?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions