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

Breaking: Aliased template syntax must be explicitly listed in template formats #3302

Closed
zachleat opened this issue May 30, 2024 · 2 comments
Labels
breaking-change This will have to be included with a major version as it breaks backwards compatibility.

Comments

@zachleat
Copy link
Member

Using https://www.11ty.dev/docs/languages/custom/#aliasing-an-existing-template-language

eleventyConfig.addExtension("markdown", {
	key: "md",
});

Any files with the .markdown extension were previously included if md was included in your project template format keys. As we unlock the power to more complex aliases in 3.0, this is changing.

You will now need to explicitly add markdown in --formats=markdown or via eleventyConfig.addTemplateFormats("markdown") to process .markdown files in your project.

This was more important as more and things chain to the 11ty.js template type (11ty.tsx, 11ty.jsx, 11ty.ts, etc).

@zachleat zachleat added the breaking-change This will have to be included with a major version as it breaks backwards compatibility. label May 30, 2024
@zachleat zachleat added this to the Eleventy 3.0.0 milestone May 30, 2024
@zachleat
Copy link
Member Author

Shipping in 3.0.0-alpha.11

@zachleat zachleat added the needs-documentation Documentation for this issue/feature is pending! label May 30, 2024
zachleat added a commit to 11ty/eleventy-upgrade-help that referenced this issue Jul 23, 2024
zachleat added a commit to 11ty/11ty-website that referenced this issue Sep 26, 2024
@zachleat
Copy link
Member Author

@zachleat zachleat removed the needs-documentation Documentation for this issue/feature is pending! label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This will have to be included with a major version as it breaks backwards compatibility.
Projects
None yet
Development

No branches or pull requests

1 participant