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

Markdown block - add example #13613

Merged
merged 3 commits into from
Oct 3, 2019
Merged

Markdown block - add example #13613

merged 3 commits into from
Oct 3, 2019

Conversation

MichaelArestad
Copy link
Contributor

Master issue: #13510

Changes proposed in this Pull Request:

  • Added an example preview to the block in the Inspector.

Before

image

After

image

Is this a new feature or does it add/remove features to an existing part of Jetpack?

  • Adding support for a new feature

Testing instructions:

  • Create a new post
  • Click the + to open the Inserter
  • Hover over Markdown

Proposed changelog entry for your changes:

  • None needed

@MichaelArestad MichaelArestad added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Markdown [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack labels Oct 1, 2019
@MichaelArestad MichaelArestad added this to the 7.9 milestone Oct 1, 2019
@MichaelArestad MichaelArestad requested a review from a team October 1, 2019 21:55
@MichaelArestad MichaelArestad self-assigned this Oct 1, 2019
@jetpackbot
Copy link
Collaborator

jetpackbot commented Oct 1, 2019

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: November 5, 2019.
Scheduled code freeze: October 29, 2019

Generated by 🚫 dangerJS against c6b0c8c

@joanrho
Copy link
Contributor

joanrho commented Oct 1, 2019

Looks great and works as expected. Would it be possible to bump up the content more?

Screen Shot 2019-10-01 at 4 45 52 PM

extensions/blocks/markdown/index.js Outdated Show resolved Hide resolved
'## ## Try Markdown\n\n' +
'Markdown is a text formatting syntax that is converted into HTML. ' +
'You can _emphasize_ text or **make it strong** with just a few characters.\n\n' +
'Search up ["Markdown"](https://daringfireball.net/projects/markdown/) to learn more.',
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about linking to our support doc instead?
https://en.support.wordpress.com/markdown-quick-reference/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was planning to remove the link altogether since it's impossible to click.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed my mind. I'm going to leave the link there because it's still useful in the Block Inspector.

extensions/blocks/markdown/index.js Outdated Show resolved Hide resolved
@jeherve jeherve added [Status] Needs Author Reply We would need you to make some changes or provide some more details about your PR. Thank you! and removed [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. labels Oct 2, 2019
extensions/blocks/markdown/index.js Outdated Show resolved Hide resolved
@MichaelArestad MichaelArestad added [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. and removed [Status] Needs Author Reply We would need you to make some changes or provide some more details about your PR. Thank you! labels Oct 3, 2019
Copy link
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

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

This looks good to me right now:

image

@jeherve jeherve added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from fellow Jetpack developers. Label will be renamed soon. labels Oct 3, 2019
@matticbot
Copy link
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello MichaelArestad! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer, review, and approve D33535-code before merging this PR. Thank you!

@jeherve jeherve merged commit a7208f6 into master Oct 3, 2019
@jeherve jeherve deleted the add/markdown-block-example branch October 3, 2019 14:53
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Ready to Merge Go ahead, you can push that green button! labels Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Markdown [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack Touches WP.com Files [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants