Markdown URL parsing problems

Richard Crowley's Avatar

Richard Crowley

05 May, 2009 05:25 PM

github.com/mmalone/django-multidb/blob/9cacae8101ce6da3292282dab4ae99211a25eb01/init.py http://github.com/mmalone/django-multidb/blob/9cacae8101ce6da3292282dab4ae99211a25eb01/init.py (The filename in both cases is underscore-underscore-"init"-underscore-underscore-".py".)

Markdown doesn't understand the URL above properly, preferring to treat init as bold text rather than a filename. Github Flavored Markdown might get this right - their docs mention single underscores but not doubles.

  1. 1 Posted by System on 07 May, 2009 02:56 AM

    System's Avatar

    A Lighthouse ticket was created for this discussion

  2. 2 Posted by Kyle Neath (Git... on 07 May, 2009 02:57 AM

    Kyle Neath (GitHub Staff) 's Avatar

    Ah yep, we work around this for italic stuff (test_method_name), but apparently not the double underscores. Yay markdown.

  3. 3 Posted by rick on 27 May, 2009 06:13 AM

    rick's Avatar

    Add a http:// prefix to it so that the auto linker picks it up.

    http://github.com/mmalone/django-multidb/blob/9cacae8101ce6da3292282dab4ae99211a25eb01/init.py

    I changed the formatter so that the autolinker runs before markdown, and now it seems to work ^

  4. 4 Posted by Richard Crowley on 27 May, 2009 05:37 PM

    Richard Crowley's Avatar

    Rock!

  5. 5 Posted by rick on 27 May, 2009 05:38 PM

    rick's Avatar

    We're adding GFM support too, but slightly tweaked. I didn't like how it handled linebreaks.

    Edit: My Github support issue regarding this problem.

  6. 6 Posted by rick on 29 May, 2009 07:31 AM

    rick's Avatar

    Okay, so if you see on the github support issue, I still have some formatting stuff to tweak. Yay for regex.

  7. Nicole closed this discussion on 10 Dec, 2009 08:59 PM.

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

05 Dec, 2019 01:11 AM
22 Nov, 2019 01:04 PM
14 Oct, 2019 04:05 AM
14 Oct, 2019 12:43 AM
21 Sep, 2019 02:33 PM