Skip to content
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

Fix references links #33759

Merged
merged 2 commits into from
May 25, 2016
Merged

Fix references links #33759

merged 2 commits into from
May 25, 2016

Conversation

aaranxu
Copy link
Contributor

@aaranxu aaranxu commented May 20, 2016

There are duplicate link references in the article and just remove one of them.

There are Duplicate link references in the article and the format is incorrect.
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@GuillaumeGomez
Copy link
Member

r? @steveklabnik

@@ -171,12 +171,10 @@ and a length.
## Slicing syntax

You can use a combo of `&` and `[]` to create a slice from various things. The
`&` indicates that slices are similar to [references], which we will cover in
`&` indicates that slices are similar to [references][references], which we will cover in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should actually be identical in Markdown, and I prefer this style. Can you revert these two changes, and just leave the deletion on 178? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the [references] style cannot be convert to PDF/LaTex correctly with Pandoc. And the converted result is still [references] in the LaTex source instead of references with a link reference.

If it's [references][references] or references][] as defined in the Markdown Syntax, the Pandoc tools can convert it to LaTex or PDF correctly.

Copy link
Contributor Author

@aaranxu aaranxu May 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that it was the trpl-ebook that could not tell the [references] style. If I use Pandoc to convert the articles to PDF or Tex format directly, it will get the right result regardless of [references], [references][] or [references][references].

Copy link
Member

@nagisa nagisa May 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CommonMark, which pandoc is supposed to implement explicitly allows this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steveklabnik I have reverted these two changes. Thanks so much!

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented May 23, 2016

📌 Commit 4c7b963 has been approved by steveklabnik

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request May 24, 2016
Fix references links

There are duplicate link references in the article and just remove one of them.
bors added a commit that referenced this pull request May 24, 2016
Rollup of 7 pull requests

- Successful merges: #33692, #33759, #33779, #33781, #33797, #33810, #33832
- Failed merges:
@bors bors merged commit 4c7b963 into rust-lang:master May 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants