-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Enhancement: Support Creation of "new" .mdx content items #218
Comments
It seems like this could be a field in the content type template definition Another option is to respect the file extension for a template file in the |
@zivbk1 I agree that these are also great alternatives. Updated description. |
@farmerau fair point! This should be a configuration by the template from which you create the content or from the content type. This needs to be enhanced on both ends. |
@farmerau I have added better
This is now available in the beta version. Feel free to give it a try, and let me know how it works for you. Beta version can be found here: https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta
|
@estruyf I pulled the latest Beta down and can confirm setting One odd thing I noticed is that the documentation for the setting doesn't appear to be loading via tooltip-- I'm not sure if that's due to caching or the way that the beta is built: For example, a previously existing setting: Thanks for the super quick turnaround on this-- I'd totally be happy to contribute in the future. |
That is normal, as the documentation and site still need to be updated. Will be for when I finalize the next release. |
Ah, okay, this makes sense!
…On Tue, Jan 4, 2022 at 4:18 PM Elio Struyf ***@***.***> wrote:
That is normal, as the documentation and site still need to be updated.
Will be for when I finalize the next release.
—
Reply to this email directly, view it on GitHub
<#218 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMOVJHCG75HGFB7PDXAULTUUNPZJANCNFSM5LF3YEWQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Released in |
Is your feature request related to a problem? Please describe.
As someone who exclusively uses MDX for content creation (as well as FrontMatter) I'm frustrated when creating new content because I need to change the file extension manually to support my workflow-- despite the plugin generally supporting FrontMatter in MDX files.
Describe the solution you'd like
In ArticleHelper, the
createContent
method hard-codedly decides that the file extension should be ".md". Similarly, this happens in template generation as well.I'd propose this be determined via a frontmatter setting.
Describe alternatives you've considered
frontMatter.taxonomy.contentTypes
per @zivbk1 here.Additional context
I would anticipate a change like this would be fully backwards compatible, as the default extension should remain ".md".
I'm happy to open a PR to address this once there's some buy-in.
The text was updated successfully, but these errors were encountered: