Development

SymfonyURLRoutingInMarkdown

You must first sign up to be able to contribute.

I 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,

open markdown.php in the function _DoAnchors_reference_callback

after this line

$url = $md_urls[$link_id];

add

if (function_exists(url_for)) {
	$url = url_for($url);
}

Now something like:

#About [reviewsby.us][rbu]

[hi][hi]
[rbu]: @homepage
[hi]: http://hi.com/

should translate just fine.

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.