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

base-url only works on markdown tags #329

Open
ryanhamilton opened this issue Oct 30, 2024 · 1 comment
Open

base-url only works on markdown tags #329

ryanhamilton opened this issue Oct 30, 2024 · 1 comment

Comments

@ryanhamilton
Copy link

ryanhamilton commented Oct 30, 2024

Consider the below test case:

 - <a href="/a">slash a</a>
 - <a href="./a">dot slash a</a>
 - <a href="a">a</a> 
 - <a href="http://timestored.com/b">ts/b</a> 
 - [MD slash a](/a)
 - [MD dot slash a](./a)
 - [MD a](a)
 - [MD ts/b](http://timestored.com/b)

Only the MD specified links will be replaced.
The <anchor tags will not be replaced.
This feels inconsistent as HTML is markdown and it isn't how <base works in general HTML.

As a workaround I am listening to hover events and replacing both A's and [MD links until I can use marked-base-url

@UziTech
Copy link
Member

UziTech commented Oct 30, 2024

This is expected. HTML should be left alone so someone could have a base for markdown links and still use html to get around it.

Feel free to create your own extension if you would like other behavior 😁👍

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