-
Notifications
You must be signed in to change notification settings - Fork 237
Easier links in Markdown #506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
For #505. I also updated the roxygen2 docs, and there are no changes in the Rd files (except for one mistake that I fixed). You can do everything with the new syntax, so it does not make sense to keep the old syntax. |
And now you can do |
Good question, I did not think about that. So, why do you want to add the |
I like to do that to denote that it's a function rather than a variable or argument. |
Got it. Unfortunately How about just
|
Btw. |
Just to confirm:
? The reason I have put the parens outside the link in the past is that it's easier to write |
We already have I am proposing to add Hopefully the last one is OK with Rd, and it will be shown as code. If not, I'll do it your way: But nevertheless the markdown will be |
Hmmmmm. I'm not sure about |
How about having another notation for that? Btw you can already do [Quotes][Quotes] which is ugly but we can have some On 16 Sep 2016 15:41, "Hadley Wickham" notifications@github.com wrote:
|
Another idea. How about automatically adding |
Yeah, that's what I was thinking |
Cool, I'll update soon(ish), maybe today. |
The old syntax is not supported. The current syntax: * [fun()] becomes \code{\link[=fun]{fun()}} * [obj] becomes \link{obj} * [pkg::fun()] becomes \code{\link[pkg:fun]{pkg::fun()}} * [pkg::obj] becomes \link[pkg:obj]{pkg::obj} * [text][fun()] becomes \link[=fun]{text} * [text][obj] becomes \link[=obj]{text} * [text][pkg::fun()] becomes \link[pkg:fun]{text} * [text][pkg::obj] becomes \link[pkg:obj]{text}
Updated. The current syntax:
It was not so trivial, but this should work fine I think. |
Thanks! |
EDIT: see current syntax below, here: #506 (comment)
The old syntax is not supported. The current syntax:[function] becomes \code{\link{function}}[pkg::function] becomes \code{\link[pkg]{function}}[name][dest] becomes \link[=dest]{name}[name][pkg::bar] becomes \link[pkg:bar]{name}