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.