-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
[BUG] Literal types printed with HTML escape chars #228
Labels
bug
Something isn't working
Comments
Thanks for the report. I didn't have the chance to play with |
I'm giving you a lot of work for just one PR 😅 |
Haha it's fine 😄 thanks a lot for reporting all these! |
Probably this should do: --- a/src/mkdocstrings/templates/python/material/attribute.html
+++ b/src/mkdocstrings/templates/python/material/attribute.html
@@ -23,7 +23,7 @@
{% filter highlight(language="python", inline=True) %}
{% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %}
- {% if attribute.type %}: {{ attribute.type }}{% endif %}
+ {% if attribute.type %}: {{ attribute.type|safe }}{% endif %}
{% endfilter %}
{% with properties = attribute.properties %} |
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Prints
'git'
instead of "git".To Reproduce
I have a
@cached_property
defined like this:Expected behavior
Print
"git"
instead.Screenshots
System (please complete the following information):
pytkdocs
mkdocstrings/pytkdocs@4052eabAdditional context
Observable on copier-org/copier@76018a7 from copier-org/copier#314.
The text was updated successfully, but these errors were encountered: