Unable to link to element on the same markdown page
mohammedsahl opened this issue Β· comments
π 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
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
Any updates on this?