zsiciarz / django-markitup

Markup handling (using Jay Salvat's MarkItUp! flexible universal markup editor) for Django
https://github.com/zsiciarz/django-markitup
BSD 3-Clause "New" or "Revised" License
47 stars 31 forks source link

How to enter HTML markup? #2

Closed mbrochh closed 11 years ago

mbrochh commented 11 years ago

Sorry for the stupid question and it is probably better suited to be asked at the markitup repo but they don't have an issue tracker...

Is there a way to enter HTML markup into the editor? For example I would like to place a Google Maps iframe, but markitup always replaces all html tags with "MARKUP REMOVED".

carljm commented 11 years ago

I don't believe that this is due to either markitup or django-markitup, but rather to whatever markup-parsing system you are using (which markitup is agnostic to). Are you using markdown? It's default behavior is to strip HTML, but it can be configured otherwise.

Maybe I'm wrong and markitup has added this HTML-tag stripping since I last used it, but I've never seen it.

In any case, closing this issue since it's definitely not something django-markitup is doing.

mbrochh commented 11 years ago

Yep I am using Markdown. As far as the Markdown specs go I always thought that Markdown allows to insert normal HTML if needed. The markitup editor certainly doesn't allow this. I guess I need to find some markitup expert and ask again. Thanks for your help!

carljm commented 11 years ago

What's relevant is not so much the Markdown spec, as the actual behavior of the Python implementation you are using. If you read here (http://packages.python.org/Markdown/reference.html#markdown) the behavior you describe certainly sounds like python-markdown with the "safe_mode" flag in use (note that [HTML_REMOVED] is python-markdown's default replacement text in that case). So I think it's likely you're chasing the wrong culprit by looking at markitup, and should instead examine the Python code that is translating the markdown to HTML.

Good luck!

helloworldhahaha commented 9 years ago

hello, I want to how to choose local picture or audio,can you tell me

Jiayi-Liao commented 7 years ago

Same problem...