# == highlight breaks http/https links and spills over to subsequent text

**URL:** <https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198>\
**Category:** Bug graveyard\
**Created:** [January 21, 2025, 1:38pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198 "2025-01-21T13:38:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![krzemian](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/k/f14d63/32.png) [@krzemian](https://forum.obsidian.md/u/krzemian)\
**Post date:** [January 21, 2025, 1:38pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198/1 "2025-01-21T13:38:56Z")

</div>

### Steps to reproduce

Type the following into a note:

> ==[http://google.com==](http://google.com==)
> 
> # Header receives the highlight by mistake
> 
> and, any text  
> here  
> as well
> 
> unless it’s separated by an empty line

### Did you follow the [troubleshooting guide](https://forum.obsidian.md/t/about-the-bug-reports-category/24/10)? Y

### Expected result

1. Link opens correctly, without the == markdown
2. Subsequent text is displayed without the highlight

### Actual result

1. Link opens as [https://google.com==](https://google.com==)
2. The text following the link is erroneously highlighted

### Environment

SYSTEM INFO:  
Obsidian version: v1.8.1  
Installer version: v1.4.13  
Operating system: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE\_ARM64\_T8103 24.1.0  
Login status: logged in  
Language: en  
Catalyst license: insider  
Insider build toggle: on  
Live preview: on  
Base theme: adapt to system  
Community theme: none  
Snippets enabled: 0  
Restricted mode: on

RECOMMENDATIONS:  
none

* * *

### Additional information

Tested in the sandbox. This has been an issue for a long time now, I was hoping it would get quickly noticed but that never happened, so posting it here

 ![20250121-001953](https://forum.obsidian.md/uploads/default/original/3X/f/b/fbcf852c817c7c3fadbd6a220a796a7143ab3d8e.png)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [January 21, 2025, 1:50pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198/2 "2025-01-21T13:50:57Z")

</div>

= is valid in URLs so I don’t think we can fix this. Use standard markdown links.

Some thing happens with underscore.

---

<div class="post-metadata">

**Author:** ![krzemian](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/k/f14d63/32.png) [@krzemian](https://forum.obsidian.md/u/krzemian)\
**Post date:** [January 23, 2025, 1:36pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198/3 "2025-01-23T13:36:24Z")

</div>

While = is valid, ==URL== is not.

What is it that would prevent Obsidian from detecting ==URL== patterns (with the preceding ==) and prioritizing the “==” as highlight markdown rather than the part of a URL?  
Meaning, URL== would be treated as a full URL, while ==URL== would be intelligently parsed as a highlighted URL?

(actually, same applies for \*\*, \_\_ etc.)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [January 23, 2025, 2:00pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198/4 "2025-01-23T14:00:55Z")

</div>

there are no restrictions to the number or consecutive = in URLs.  
Sure, we could some sort guesswork in the parser. You can open a FR for that.

---

<div class="post-metadata">

**Author:** ![krzemian](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/k/f14d63/32.png) [@krzemian](https://forum.obsidian.md/u/krzemian)\
**Post date:** [January 25, 2025, 10:21pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198/5 "2025-01-25T22:21:07Z")

</div>

For anyone looking, I’ve opened a FR here: [Ability to highlight links without breaking them](https://forum.obsidian.md/t/ability-to-highlight-links-without-breaking-them/95446)

Feel free to vote if that’s relevant to you.

---

<div class="post-metadata">

**Author:** ![anon80950206](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b77776/32.png) [@anon80950206](https://forum.obsidian.md/u/anon80950206)\
**Post date:** [January 27, 2025, 8:47pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198/6 "2025-01-27T20:47:47Z")

</div>

> [@WhiteNoise](#):
>
> Use standard markdown links.

Any reason to not use angle brackets to contain the URL? (They appear to work in local tests.)

```auto
==<http://google.com>==

_<http://google.com>_

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [February 24, 2025, 8:48pm UTC](https://forum.obsidian.md/t/highlight-breaks-http-https-links-and-spills-over-to-subsequent-text/95198/7 "2025-02-24T20:48:20Z")

</div>

Closed on February 24, 2025, 8:48pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
