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

Anchor links in markdowns don't work in angular #1699

Open
danilotaira opened this issue Aug 17, 2021 · 1 comment
Open

Anchor links in markdowns don't work in angular #1699

danilotaira opened this issue Aug 17, 2021 · 1 comment
Labels
t/bug Something isn't working triaged

Comments

@danilotaira
Copy link

Hi guys.

I'm testing this excellent project using Angular. And I'm having difficulties with the markdowns, the anchor links automatically set in the markdowns (titles: h1, h2 and h3). are pointing to the #link url. they do not respect the relative path on which the markdown is located, that is, the links are only leading to non-existent paths. I would like to know if there is another way to fix this problem, I found that with react it works fine.

@danilotaira danilotaira added the t/bug Something isn't working label Aug 17, 2021
@danilotaira danilotaira changed the title Links ancora nos markdowns não funcionam no angular Anchor links in markdowns don't work in angular Aug 17, 2021
@EraYaN
Copy link

EraYaN commented Sep 15, 2021

The same goes for links in the markdown INSIDE the descriptions of endpoints/operations like

[SchemaName](../schemas/SchemaName)

(Although it's probably better to start supporting something like xref like they do here: https://dotnet.github.io/docfx/spec/docfx_flavored_markdown.html#cross-reference but then with full Scheme References like
#/components/schemas/SchemaName

They should all respect the basePath and current page. Especially since Angular sort of requires the <base href="/"> to be set.

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

No branches or pull requests

3 participants