Login
or
register
Overview
Introduction
Features
Credits
License
This Wiki
Status
News
Releases
Change Log
Recent Wiki Edits
User Guide
Installation
Command Line
Using as a Module
Integration
Reporting Bugs
Advanced
Mailing List
Source Code
Test Suite
Extensions
Extensions
Writing Extensions
Available Extensions
Related Projects
Tickets
▹ 000049
Unexpected link reference behavior
Anonymous users must enter
captcha
below.
Ticket Information
Ticket Title
Don't put anything here
If you create a reference to a URL, but don't define it later, you get an unclosed anchor tag. It seems that desired behavior would be for the link to be ignored. Here's the code that gave me trouble ------------------------------------ Django's support for [CouchDB][] (another technology we are using with FeedMagnet) is a good example of this. The problem was that I never defined CouchDB like this [CouchDB]: Forgetting to define the link reference can happen on accident fairly easily if your text has a lot of links in it. If this scenario occurs, I would think the desired HTML output would be: Django's support for [CouchDB][] (another technology we are using with FeedMagnet) is a good example of this. or maybe even drop the brackets all-together to fail more gracefully: Django's support for CouchDB (another technology we are using with FeedMagnet) is a good example of this. But instead, I got this: Django's support for [CouchDB]<a href="another technology we are using with FeedMagnet" /> is a good example of this. In Safari, this doesn't look so bad - but in Firefox (and possibly other browsers) this results in the rest of the page being a link to nowhere, since there is no closing anchor tag. This seems to be a bug since one of the primary reasons (at least from my perspective) in using Markdown, is to prevent accidental HTML syntax errors like the unclosed anchor tag this scenario is generating. ###Comments __By Waylan on Nov 16, 2009:__ What version of Python-Markdown are you using. I can't seem to reproduce this on the most recent version (2.0.3). Note: >>> import markdown >>> markdown.version 2.0.3 >>> markdown.markdown('Foo [bar][] baz.') u'<p>Foo [bar][] baz.</p>' >>> markdown.markdown('Foo [bar][] baz.\n\n[bar]: http://example/com') u'<p>Foo <a href="http://example.com">bar</a> baz.</p>' And just to make sure it wasn't the parentheses after the non-link that were triggering the problem: >>> markdown.markdown('foo [bar][] (baz).') u'<p>foo [bar][] (baz).</p>'
Reported by
Assigned to
Status
open
someday
resolved
closed
Resolution
n.a.
fixed
wontfix
Don't put anything here
Advanced Fields
Priority
unassigned
high
medium
low
Resolution Explanation
Don't put anything here
Component
Don't put anything here
Don't put anything here
About This Edit
Minor Edit
Edit Summary
Don't put anything here
save
preview
cancel
Powered by
Sputnik
|
XHTML 1.1