Skip to content

Fixes #60, Supports Markdown Files #61

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

Merged
merged 5 commits into from
Jun 9, 2017
Merged

Conversation

cvharris
Copy link
Contributor

@cvharris cvharris commented Jun 9, 2017

Copying the changes necessary to support PHP files and the like, this simple PR extends support to Markdown files. This is extremely useful for Jekyll sites which mix HTMl inside markdown, along with other Liquid or similarly built frameworks.

Should be noted, similar functionality exists in rival extension HTML CSS Support, so it makes sense to add such support here.

Copy link
Owner

@zignd zignd left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @cvharris! But I'd like to request a quick change before I can merge the code.

src/extension.ts Outdated
@@ -117,6 +117,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
const php = provideCompletionItemsGenerator('php', htmlRegex);
const vue = provideCompletionItemsGenerator('vue', htmlRegex);
const twig = provideCompletionItemsGenerator('twig', htmlRegex);
const md = provideCompletionItemsGenerator('md', htmlRegex);
Copy link
Owner

@zignd zignd Jun 9, 2017

Choose a reason for hiding this comment

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

Replace md with markdown. It's the correct language id and without this properly set the extension will not work for Markdown.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I thought it was simply referring to the file extension. Let me know if that's enough.

@zignd zignd merged commit e09bfe3 into zignd:master Jun 9, 2017
@zignd
Copy link
Owner

zignd commented Jun 9, 2017

All good now, I'll release a new version in a moment!

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