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

[draft-js-export-markdown] Add support for embeds #176

Merged
merged 6 commits into from
Mar 24, 2019
Merged

Conversation

mxstbr
Copy link
Collaborator

@mxstbr mxstbr commented Mar 21, 2019

No description provided.

Copy link
Owner

@sstur sstur left a comment

Choose a reason for hiding this comment

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

LGTM.

Must be an issue with the prettier settings causing the formatting changes; which I think is holding up Travis.

Feel free to fix and land at will.

@@ -253,6 +253,8 @@ class MarkupGenerator {
let src = data.src || '';
let alt = data.alt ? `${escapeTitle(data.alt)}` : '';
return `![${alt}](${encodeURL(src)})`;
} else if (entity != null && entity.getType() === 'embed') {
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a constant for 'embed' type? Or should we make one?

@mxstbr
Copy link
Collaborator Author

mxstbr commented Mar 21, 2019

Done!

@@ -1,6 +1,6 @@
{
"name": "draft-js-export-markdown",
"version": "1.3.3",
"name": "draft-js-export-markdown-fork-mxstbr",
Copy link
Owner

Choose a reason for hiding this comment

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

Is this intentional, or just a consequence of a git rebase?

@mxstbr
Copy link
Collaborator Author

mxstbr commented Mar 22, 2019

Oh oopsie, I committed that on accident. One second...

@sstur
Copy link
Owner

sstur commented Mar 22, 2019

Kool. Just fix up the CI issues (just lint/code formatting I think) and feel free to 🚢 it!

@mxstbr
Copy link
Collaborator Author

mxstbr commented Mar 24, 2019

Done!

@sstur sstur merged commit 445352c into master Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants