Skip to content

jump to anchor #2

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
jeising opened this issue Feb 25, 2021 · 5 comments
Open

jump to anchor #2

jeising opened this issue Feb 25, 2021 · 5 comments

Comments

@jeising
Copy link

jeising commented Feb 25, 2021

Hi!

Thanks for this great extension! I love the possibility to jump from diagrams to other docs in markdown style!

I have one question: When I use an anchor at the end of the link, it is available in the address bar after clicking on the link in the diagram. But it wont scroll to the proper location in the newly opened page but stay at the top. If I hit F5 it scrolls to the proper location.

Do you have any ideas, what this could be related to? If that would work, it would open quite many possibilities! :)

Regards,
Johannes

@rochajg
Copy link
Contributor

rochajg commented Feb 26, 2021

Hello, Johannes! How are going?

First of all, I appreciate the congrats!

That case you comment, it's not all clear to me... can you show a dummy example?

@jeising
Copy link
Author

jeising commented Feb 27, 2021

Hi Jordan!

Thanks for your quick reply! There is a small example here:

https://github.com/jsqu4re/docsify-puml-sample/blob/main/README.md
https://jsqu4re.github.io/docsify-puml-sample/#/

It is extremely useful to jump to an anchor in a document for navigation but there seem to be some limitations.

Looking forward to hear your ideas!

@rochajg
Copy link
Contributor

rochajg commented Mar 10, 2021

Apologies for the delay, Johannes! I'm trapped in some job things and can't respond before... :/

I'm looking that example you give me and, searching a solution, founded it's a PlantUML problem. When I parsed the link to a PlantUML link they do all the job to convert it in a SVG link like this:
image

So, I ain't conformed with that situation. Will keep searching for a solution to that problem... probably taking that response and making a second validation to generated link... or something like this.

Give me some days to look for something!

@jeising
Copy link
Author

jeising commented Mar 10, 2021

Would be great if you can find the source of this issue. I am not sure whether this might be related to the smooth scrolling behaviour of docsify.

@rochajg
Copy link
Contributor

rochajg commented Mar 10, 2021

Mmm... It's a good point too. I'll look at this way too

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

No branches or pull requests

2 participants