Skip to content

fix anchor in tutorial1 #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorial/tutorial1.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ If all goes well you'll see output like this:
[13:55:39] ✔ successfully compiled.
```

Running `vuepress dev` creates a sort of temporary copy of the site on the fly. It converts the Markdown files (such as README.md) to HTML, so, for example, `## Location and directions` gets converted to HTML that looks like this:
Running `vuepress dev` creates a sort of temporary copy of the site on the fly. It converts the Markdown files (such as README.md) to HTML, so, for example, `## Welcome to Example.com` gets converted to HTML that looks like this:

```html
<h1 id="welome-to-example-com">Welcome to Example.com</h1>
Expand Down Expand Up @@ -196,7 +196,7 @@ Move your mouse or touch over the headline and you'll see a pound sign appear.

That represents a link to this exact location on the page (called an anchor, corresponding to an
anchor tag in HTML). If you right-click it and choose to copy the link from the context menu,
when you paste in that link it will be pasted as `http://localhost:8080/http://localhost:8080/index.html#welcome-to-example-com`,
when you paste in that link it will be pasted as `http://localhost:8080/#location-and-directions`,
not just `http://localhost:8080`.

Any good website used for reference purposes should use descriptive anchors like this. Vuepress
Expand Down