Development

SymfonyURLRoutingInMarkdown (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of SymfonyURLRoutingInMarkdown

Show
Ignore:
Author:
dave dash (IP: 24.26.173.22)
Timestamp:
05/06/06 16:03:20 (12 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SymfonyURLRoutingInMarkdown

    v0 v1  
     1I was writing some static content, and then I decided I only like to write in Markdown, but then I got stuck when I needed to use symfony's routing.  Easy fix,  
     2 
     3open markdown.php in the function _DoAnchors_reference_callback 
     4 
     5after this line 
     6 
     7{{{ 
     8$url = $md_urls[$link_id]; 
     9}}} 
     10 
     11add 
     12 
     13{{{ 
     14if (function_exists(url_for)) { 
     15        $url = url_for($url); 
     16} 
     17 
     18}}} 
     19 
     20Now something like: 
     21 
     22{{{ 
     23#About [reviewsby.us][rbu] 
     24 
     25[hi][hi] 
     26[rbu]: @homepage 
     27[hi]: http://hi.com/ 
     28 
     29}}} 
     30 
     31should translate just fine.