Skip to content

Pass code string as children when no highlighting is supplied#46

Merged
Hypnosphi merged 8 commits into
masterfrom
escape-html
Dec 3, 2017
Merged

Pass code string as children when no highlighting is supplied#46
Hypnosphi merged 8 commits into
masterfrom
escape-html

Conversation

@Hypnosphi
Copy link
Copy Markdown
Member

@Hypnosphi Hypnosphi commented Nov 6, 2017

Issue: #26

When user didn't supply a highlighting option (in which case the escaping is done on the side of highlighting library), code string should be passed as children, so that React escapes it

@Hypnosphi Hypnosphi changed the title Escape code string when no highlighting is supplied Pass code string as children when no highlighting is supplied Dec 3, 2017
@Hypnosphi
Copy link
Copy Markdown
Member Author

Hypnosphi commented Dec 3, 2017

This also includes changes from #45 & #47

@Hypnosphi Hypnosphi merged commit d19a989 into storybookjs:master Dec 3, 2017
@Hypnosphi Hypnosphi deleted the escape-html branch December 3, 2017 23:14
@mAAdhaTTah
Copy link
Copy Markdown

Any chance of getting a release with this fix cut? Currently causing some issues w/ Markdown in Spectacle.

@Hypnosphi
Copy link
Copy Markdown
Member Author

Released as 6.0.0

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

Successfully merging this pull request may close these issues.

2 participants