Skip to content

Properly handle anchor links local within a file. Fix #142 #143

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

Merged
merged 3 commits into from
Apr 1, 2017
Merged

Properly handle anchor links local within a file. Fix #142 #143

merged 3 commits into from
Apr 1, 2017

Conversation

bojand
Copy link
Contributor

@bojand bojand commented Mar 30, 2017

in toURL test for anchor links and if so prepend the currentPath to t…he generated path. fixes #142.

Please makes sure these boxes are checked before submitting your PR, thank you!

  • Make sure you are merging your commits to master branch.
  • Add some descriptions and refer relative issues for you PR.
  • DO NOT include files inside lib directory.

@@ -66,11 +66,14 @@ export function parse (path = window.location.href) {
* @param {object} qs query params
*/
export function toURL (path, params) {
const inline = path[0] === '#';
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the semi.

@bojand
Copy link
Contributor Author

bojand commented Mar 30, 2017

fixed. sorry, i actually don't use semi's myself, but got used to looking at the built version which had semis, and didn't realize the actual code here omits them.

@bojand
Copy link
Contributor Author

bojand commented Mar 31, 2017

I'll have to properly redo this. I didn't realize the code is a bit different than the built / bundled app.

@bojand bojand closed this Mar 31, 2017
@bojand bojand reopened this Mar 31, 2017
@QingWei-Li QingWei-Li merged commit aa6d2af into docsifyjs:master Apr 1, 2017
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.

2 participants