Ticket #1320 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Extend basic markdown to support normal http / https links

Reported by: rgrp Owned by: zephod
Priority: major Milestone: ckan-sprint-2011-10-10
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description (last modified by zephod) (diff)

It is very annoying that you have to wrap links in <...> and most people don't bother. Extend h.markdown in code and markdown in js to fix this.

(We should also support 'package' links etc in javascript?)

*ADDITIONAL*

  • Note that CKAN flavoured markdown will not currently recognise dataset:my_data links (still uses package).
  • Move the markdown api to /util/markdown

Change History

comment:1 Changed 3 years ago by zephod

Extend misc.py to regex find http and https, surrounding it with <>. ALSO note that CKAN flavoured markdown will not currently recognise dataset:my_data links (still uses package).

comment:2 Changed 3 years ago by zephod

  • Description modified (diff)

comment:3 Changed 3 years ago by zephod

  • Milestone changed from ckan-backlog to ckan-sprint-2011-10-10

Slightly painful when links appear inside naughty HTML tags or in markdown tags. Restriction: Links are auto-linked if they appear at the start of a line or after whitespace.

cset:f9dfb0506594

comment:4 Changed 3 years ago by rgrp

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.