-
Notifications
You must be signed in to change notification settings - Fork 62
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 is URL encoding my images links in Templates #24
Comments
Any updates on this? I am having the same issue.. |
This can help, I am not sure if it is proper solution but it works. Set "safe_mode" to False and in the template you can do
|
@rentgeeen Hey thanks so much for responding that helped a lot, how did you find that out btw? |
Look here https://github.com/trentm/django-markdown-deux#markdown_deux_styles-setting And notice the 2nd example: "Here is how you might add styles of your own, and preserve the default style" I played with that code - there is safe_mode: False But would like to know proper answer + last response here was like 2 years ago so I am not sure if it is maintained still. (Merry Christmas :) ) |
I would also want this fixed. Using |
Everything is working fine after installation, I am also using https://github.com/timmyomahony/django-pagedown for Admin.
When I insert the images with URL links and do not use {{ article.description }} instead of {{ article.description|markdown }} I can see the URL just fine like this:
"http://www.example.com/image.jpg" in templates.
In the Admin:
![image title][1]
[1]: http://www.example.com/image.jpg
But as soon as I add template tag "markdown" - {{ article.description|markdown }}
HTML output is
<img src="http%3A%2F%2Fwww.example.com%2Fimage.jpg">
and the image cannot be loaded. I have tried it on my 2 projects if I am wrong in some way but the same result.The text was updated successfully, but these errors were encountered: