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

Unable to link to element on the same markdown page #1668

Open
mohammedsahl opened this issue Aug 2, 2023 · 2 comments
Open

Unable to link to element on the same markdown page #1668

mohammedsahl opened this issue Aug 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mohammedsahl
Copy link

mohammedsahl commented Aug 2, 2023

🐞 Bug report

Description

I'm not sure if this is a bug or it outright isn't supported but given a markdown file, a <a id="foo"></a> somewhere within the file and a [Text](#foo), clicking on the hyperlink doesn't jump to the

🔬 Minimal Reproduction

I've set up an example repository. The md file of importance is first-post.md. The hyperlinks are at the very top of the file. The anchor I'm trying to link to is at the very bottom

💻Your Environment

Angular Version:




     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 13.0.3
Node: 18.16.1 (Unsupported)
Package Manager: npm 9.5.1
OS: darwin x64

Angular: 13.0.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1300.3
@angular-devkit/build-angular   13.0.3
@angular-devkit/core            13.0.3
@angular-devkit/schematics      13.0.3
@angular/cli                    13.0.3
@schematics/angular             13.0.3
rxjs                            7.4.0
typescript                      4.4.4

Scully Version:




    "@scullyio/init": "^2.0.5",
    "@scullyio/ng-lib": "^2.0.0",
    "@scullyio/scully": "^2.0.0",
    "@scullyio/scully-plugin-puppeteer": "^2.0.0",

🔥 Exception or Error




@mohammedsahl mohammedsahl added the bug Something isn't working label Aug 2, 2023
@mohammedsahl
Copy link
Author

I have some success in linking to the anchor if the hyperlink is of type
[Text](http://localhost:4200/blog/first-post#foo). But that's not a proper solution since I had to hardcode the base url

@mohammedsahl
Copy link
Author

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant