Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White listing 'hr' does not render it correctly #43

Closed
sunkibaek opened this issue Apr 27, 2017 · 1 comment
Closed

White listing 'hr' does not render it correctly #43

sunkibaek opened this issue Apr 27, 2017 · 1 comment

Comments

@sunkibaek
Copy link

While below renders as expected:

        <Markdown
          styles={{ text: textStyle }}
        >
          hello{'\n'}
          ---{'\n'}
          world
        </Markdown>

putting 'hr' in whitelist does not parse --- into hr

        <Markdown
          styles={{ text: textStyle }}
          whitelist={['hr']}
        >
          hello{'\n'}
          ---{'\n'}
          world
        </Markdown>

Seems like I am missing something obvious -- any advice?

@CharlesMangwa
Copy link
Owner

The whitelist/blacklist feature is just here to specify if you want to use the default style or not, as explained here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants