Search - User list
Full Version: link inside code tag
Root » Bugs » link inside code tag
1
scrapper
hello friends, hello slavonic :-)

this is a problem:
 some code and now a link inside the code [url]http://www.google.com[/url] 

as you can see, URL-tags get added automatically because of the URI but inside code-tags the html afterwards does show up the automatically added URL tags.

i haven't found where this is done, still looking.
i have checked if it is done by add_post function. but no it seems to be somewhere else.
so i guess it's done in postmarkup…!? a lot of parsing :-)

greetings
sc

scrapper
i have posted the issue to postmarkup as well.

http://code.google.com/p/postmarkup/issues/detail?id=25 [code.google.com]

greetings
sc
scrapper
double entry - i am innocent!
by the way, this is the reason, why it would be great to delete posts within lets say the first 10minutes.
and not just let users to edit the posts. to avoid such double entries.
(i have deleted the double content)
but it would be great to delete the whole post.
scrapper
Hint
a dirty quick fix would be to set auto_urls=False

in postmarkup.py:
_postmarkup = create(use_pygments=pygments_available)
def render_bbcode(bbcode,
encoding="ascii",
exclude_tags=None,
auto_urls=True,
paragraphs=False,
clean=True,
render_unknown_tags=False,
tag_data=None):

but i hope we find a real solution for the future.
something like:
if inside code-tags auto_urls=False else auto_urls=True
slav0nic
hi, tnx.

but will be better if this fixed in postmarkup codebase by author.
scrapper
hey slav0nic my friend,

yes i know, this is the reason why i have posted the problem to him. Hope he will find a good solution soon!

greetings
sc
slav0nic
ok tnx, i sended mail to author too
slav0nic
fixed on latest postmarkup
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB