iamacup / react-native-markdown-display

React Native 100% compatible CommonMark renderer
MIT License
564 stars 166 forks source link

How to render markdown with colon #187

Closed gandarain closed 8 months ago

gandarain commented 1 year ago

I try to render markdown with this library react-native-markdown-display.

And then I find a different result when render the markdown content with equal(=) and colon(:)

This is with equal(=),

const exampleMarkdown = `# Hello

**This is some bold text!**

Ordered List:
1. First item
2. Second item
3. Third item
`
Screen Shot 2023-01-17 at 23 26 06

And this with colon(:)

const content = {
  exampleMarkdown: `# Hello
    **This is some bold text!**
    Ordered List:
    1. First item
    2. Second item
    3. Third item`
}
Screen Shot 2023-01-17 at 23 25 53