Skip to content

Commit a2dd37b

Browse files
committed
Auto-link bare URIs in documentation rendering
@bytbox in rust-lang#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.
1 parent 5b6ef09 commit a2dd37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/markdown.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'self> fmt::Default for Markdown<'self> {
2828
CreatePipe(PipeStream::new().unwrap(), false, true)];
2929
let args = ProcessConfig {
3030
program: "pandoc",
31-
args: [],
31+
args: ["-f", "mardown+autolink_bare_uris"],
3232
env: None,
3333
cwd: None,
3434
io: io,

0 commit comments

Comments
 (0)