From a2dd37bce9ccb38c365eaf15ca1e418180d1db1f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 23 Sep 2013 10:04:15 -0700 Subject: [PATCH] Auto-link bare URIs in documentation rendering @bytbox in #9424 found out that http://foo.com wasn't rendered as a link in pandoc by default. This extension to pandoc enables the auto-linking behaviour, however. --- src/librustdoc/html/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index 14e2327550b32..6168bce9031fb 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -28,7 +28,7 @@ impl<'self> fmt::Default for Markdown<'self> { CreatePipe(PipeStream::new().unwrap(), false, true)]; let args = ProcessConfig { program: "pandoc", - args: [], + args: ["-f", "mardown+autolink_bare_uris"], env: None, cwd: None, io: io,