-
-
Notifications
You must be signed in to change notification settings - Fork 224
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 filter requires markdown feature error, even though the feature is enabled #656
Comments
Huh, I can reproduce the error, but I can't see the reason. Even if I explicitly depend on askama_shared/markdown it does not work. [dependencies.askama_shared]
features = ["markdown"] I don't see a typo or anything, and hd does not show any stray zero-width characters. @djc, do you have an idea? |
Yes! Here's a hint: if you change the edition to 2018, it fails with a different error (that we should probably fix):
So here's what's happening: in 2021 Cargo defaults to the new resolver, which compiles dependencies separately if they have different features. With the recent changes, we no longer forward Cargo features through askama_derive to askama_shared, which means that, while run-time askama_shared has the markdown feature (as evidenced by the appearance of the comrak dependency in |
I will also look into if this is the same as my issue. |
yes this is a similar issue I have also fixed it in my tests. Will PR it soon once I'm done running all the tests. |
This should be resolved within the PR https://github.com/djc/askama/pull/662. @Asha20 please give it a try. if it now works with the latest git please close this. Thank you. |
Looks like it works now. Thanks! |
Hey, I'm not sure if I'm doing something wrong here or it's a bug, but I can't seem to get the
markdown
filter working, even though the relevant feature is enabled; I keep getting a proc macro compile error. Any help would be greatly appreciated!My code looks something like this:
The text was updated successfully, but these errors were encountered: