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

[Feature Req] Distinguish external/internal link also in edit mode #182

Closed
Karl-Bee opened this issue Jun 17, 2023 · 2 comments
Closed

[Feature Req] Distinguish external/internal link also in edit mode #182

Karl-Bee opened this issue Jun 17, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Karl-Bee
Copy link

your theme is great, thank you for that!

however in edit mode I cannot distinguish between an internal and an external link.
I did look in all settings and cannot find where to set.
it is a similar issue as: #145
and an answer has been given in #133
which only seems to work in preview mode
however the differentiation doesn't show up in edit mode.

Could you please implement it in both preview and edit mode?
I do work in edit mode most of the time

Thank you very much.

@Karl-Bee Karl-Bee added the enhancement New feature or request label Jun 17, 2023
@Karl-Bee Karl-Bee changed the title [Feature Request] Distinguish external/internal link also in [Feature Req] Distinguish external/internal link also in edit mode Jun 17, 2023
@AnubisNekhet
Copy link
Owner

As far as I can tell, Obsidian simply cannot differentiate between unresolved and resolved links. However, I have implemented a fix for underlines in Live Preview mode which fixes internal links having underlines.

@chris-lesage
Copy link

chris-lesage commented Jul 17, 2023

Hi there, you can distinguish unresolved links. This is what I use to make them wavy-underlined and a complementary colour.

Got this from the forum I think, but adapted: https://forum.obsidian.md/t/how-can-i-make-unresolved-link-display-differently/45171/2

As opposed to that answer in #133 (which I'm not familiar with), my snippet below only works in Edit Mode. Not in Reading Mode. But there must be a class for both, I assume. (Also sorry if I misunderstood, and this wasn't what either of you were talking about!)

.markdown-source-view.mod-cm6 .is-unresolved {
    color: orange;
    font-style: italic;
    text-decoration-style: wavy;
    text-decoration-line: underline;
}   

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants