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

Update react-mde to 6.0.0-alpha.1 #1007

Merged
merged 1 commit into from
Nov 8, 2018
Merged

Update react-mde to 6.0.0-alpha.1 #1007

merged 1 commit into from
Nov 8, 2018

Conversation

Betree
Copy link
Member

@Betree Betree commented Nov 5, 2018

Fix #395

ℹ️ Write / Preview buttons are not localized yet. I've open an issue to fix a bug preventing from implementing it right now: andrerpena/react-mde#147

Changes

See https://github.com/andrerpena/react-mde/blob/master/docs-md/ChangeLogMigrating.md for the full react-mde changelog.

@Betree Betree requested review from znarf and xdamman November 5, 2018 15:21
@vercel
Copy link

vercel bot commented Nov 5, 2018

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

commands={ReactMdeCommands.getDefaultCommands()}
commands={this.commands}
generateMarkdownPreview={markdown => {
return Promise.resolve(this.converter.makeHtml(markdown));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need Promise.resolve here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-mde requires a promise to be returned for generateMarkdownPreview. I've added a comment for this.

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@Betree
Copy link
Member Author

Betree commented Nov 6, 2018

Code amended with requested changes

@znarf znarf merged commit 3d78ecf into master Nov 8, 2018
@znarf znarf deleted the 395-update-react-mde branch March 20, 2019 10:53
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.

Update react-mde to latest upstream
2 participants