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

preview: allow rendering of '.markdown' files #7234

Merged
merged 1 commit into from
Feb 27, 2020
Merged

Conversation

vince-fugnitto
Copy link
Member

Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com

What it does

Fixes #7228

This commit adds extra handling to be able to render .markdown files similarly to .md. With this change, users will be able to render both .md and .markdown files using the @theia/preview extension.

How to test

Test cases were added to validate the canHandle function of the MarkdownPreviewHandler.

  1. open a .md file (previewing should be available)
  2. open a .markdown file (previewing should be available)

Review checklist

Reminder for reviewers

Fixes #7228

This commit adds extra handling to be able to render
`.markdown` files similarly to `.md`. With this change,
users will be able to render both `.md` and `.markdown` files
using the `@theia/preview` extension.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto vince-fugnitto added preview issues related to the preview markdown issues related to markdown labels Feb 27, 2020
@vince-fugnitto vince-fugnitto self-assigned this Feb 27, 2020
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

thank you, works well!

@vince-fugnitto
Copy link
Member Author

thank you, works well!

Thank you! Merging since it is relatively low risk and is a nice feature (also for Gitpod) 😃

@vince-fugnitto vince-fugnitto merged commit 5f50a7d into master Feb 27, 2020
@vince-fugnitto vince-fugnitto deleted the vf/GH-7228 branch February 27, 2020 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
markdown issues related to markdown preview issues related to the preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Render .markdown files in preview
2 participants