scullyio / scully

The Static Site Generator for Angular apps

Home Page:https://scully.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?