# Previewed URL during 'editing' view is different from the rendered 'reading' view

**URL:** <https://forum.obsidian.md/t/previewed-url-during-editing-view-is-different-from-the-rendered-reading-view/100651>\
**Category:** Bug graveyard\
**Tags:** ui-ux, live-preview\
**Created:** [May 13, 2025, 3:21pm UTC](https://forum.obsidian.md/t/previewed-url-during-editing-view-is-different-from-the-rendered-reading-view/100651 "2025-05-13T15:21:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BambusControl](https://forum.obsidian.md/user_avatar/forum.obsidian.md/bambuscontrol/32/56941_2.png) [@BambusControl](https://forum.obsidian.md/u/BambusControl)\
**Post date:** [May 13, 2025, 3:21pm UTC](https://forum.obsidian.md/t/previewed-url-during-editing-view-is-different-from-the-rendered-reading-view/100651/1 "2025-05-13T15:21:33Z")

</div>

### Steps to reproduce

1. Create a new note
2. Paste the following markdown block in (which contains parentheses):

```markdown
[76 results](https://ieeexplore.ieee.org/search/searchresult.jsp?action=search&matchBoolean=true&queryText=(("Document%20Title":code%20OR%20"Document%20Title":software%20OR%20"Document%20Title":program)%0AAND%20("Document%20Title":green%20OR%20"Document%20Title":sustainab*%20OR%20"Document%20Title":efficien*%20OR%20"Document%20Title":energy%20OR%20"Document%20Title":power%20OR%20"Document%20Title":carbon)%0AAND%20("Document%20Title":llm%20OR%20"Document%20Title":ai%20OR%20"Document%20Title":clm%20OR%20"Document%20Title":"language%20model"%20OR%20"Document%20Title":refactor*%20OR%20"Document%20Title":optimi*%20OR%20"Document%20Title":generat*%20OR%20"Document%20Title":synth*%20OR%20"Document%20Title":repair%20OR%20"Document%20Title":fix%20OR%20"Document%20Title":correct*%20OR%20"Document%20Title":smell%20OR%20"Document%20Title":pattern)%0AAND%20("Full%20Text%20Only":green%20OR%20"Full%20Text%20Only":sustainable%20OR%20"Full%20Text%20Only":efficient%20OR%20"Full%20Text%20Only":"energy%20consumption"%20OR%20"Full%20Text%20Only":"power%20consumption"%20OR%20"Full%20Text%20Only":"carbon%20emission"%20OR%20"Full%20Text%20Only":"carbon%20footprint"%20OR%20"Full%20Text%20Only":performance%20OR%20"Full%20Text%20Only":runtime)%0AAND%20("Full%20Text%20Only":refactoring%20OR%20"Full%20Text%20Only":optimization%20OR%20"Full%20Text%20Only":generation%20OR%20"Full%20Text%20Only":synth*%20OR%20"Full%20Text%20Only":repair%20OR%20"Full%20Text%20Only":fix%20OR%20"Full%20Text%20Only":correct*%20OR%20"Full%20Text%20Only":smell%20OR%20"Full%20Text%20Only":anti-pattern%3F%20OR%20"Full%20Text%20Only":antipattern%3F%20OR%20"Full%20Text%20Only":bench*%20OR%20"Full%20Text%20Only":"energy%20profiling"%20OR%20"Full%20Text%20Only":"causal%20profiling")%0AAND%20("Full%20Text%20Only":llm%20OR%20"Full%20Text%20Only":ai%20OR%20"Full%20Text%20Only":clm%20OR%20"Full%20Text%20Only":"language%20model"))&highlight=true&returnFacets=ALL&returnType=SEARCH&matchPubs=true&ranges=2020_2025_Year)

```

### Expected result

The URL renders:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/e/d/ed256fe3f3268043c62b2f04f88cf48ee49b5551.png)

### Actual result

The URL gets cut off and a leftover is rendered as normal text:

```auto
&highlight=true&returnFacets=ALL&returnType=SEARCH&matchPubs=true&ranges=2020_2025_Year)

```

 ![image](https://forum.obsidian.md/uploads/default/original/3X/9/3/934c43bc5566e73f0b03a427c5a55c211cc2abea.png)

### Environment

SYSTEM INFO:  
Obsidian version: v1.8.10  
Installer version: v1.7.4  
Operating system: Windows 11 Pro 10.0.26100  
Login status: not logged in  
Language: en  
Insider build toggle: off  
Live preview: on  
Base theme: adapt to system  
Community theme: none  
Snippets enabled: 0  
Restricted mode: off  
Plugins installed: 5  
Plugins enabled: 0

RECOMMENDATIONS:  
none

---

<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:** [May 13, 2025, 4:06pm UTC](https://forum.obsidian.md/t/previewed-url-during-editing-view-is-different-from-the-rendered-reading-view/100651/2 "2025-05-13T16:06:17Z")

</div>

Hello.

Percent encoding the troublesome closing bracket and wrapping the URL in angled braces works in a local test vault:

```auto
[76 results](<https://ieeexplore.ieee.org/search/searchresult.jsp?action=search&matchBoolean=true&queryText=(("Document%20Title":code%20OR%20"Document%20Title":software%20OR%20"Document%20Title":program)%0AAND%20("Document%20Title":green%20OR%20"Document%20Title":sustainab*%20OR%20"Document%20Title":efficien*%20OR%20"Document%20Title":energy%20OR%20"Document%20Title":power%20OR%20"Document%20Title":carbon)%0AAND%20("Document%20Title":llm%20OR%20"Document%20Title":ai%20OR%20"Document%20Title":clm%20OR%20"Document%20Title":"language%20model"%20OR%20"Document%20Title":refactor*%20OR%20"Document%20Title":optimi*%20OR%20"Document%20Title":generat*%20OR%20"Document%20Title":synth*%20OR%20"Document%20Title":repair%20OR%20"Document%20Title":fix%20OR%20"Document%20Title":correct*%20OR%20"Document%20Title":smell%20OR%20"Document%20Title":pattern)%0AAND%20("Full%20Text%20Only":green%20OR%20"Full%20Text%20Only":sustainable%20OR%20"Full%20Text%20Only":efficient%20OR%20"Full%20Text%20Only":"energy%20consumption"%20OR%20"Full%20Text%20Only":"power%20consumption"%20OR%20"Full%20Text%20Only":"carbon%20emission"%20OR%20"Full%20Text%20Only":"carbon%20footprint"%20OR%20"Full%20Text%20Only":performance%20OR%20"Full%20Text%20Only":runtime)%0AAND%20("Full%20Text%20Only":refactoring%20OR%20"Full%20Text%20Only":optimization%20OR%20"Full%20Text%20Only":generation%20OR%20"Full%20Text%20Only":synth*%20OR%20"Full%20Text%20Only":repair%20OR%20"Full%20Text%20Only":fix%20OR%20"Full%20Text%20Only":correct*%20OR%20"Full%20Text%20Only":smell%20OR%20"Full%20Text%20Only":anti-pattern%3F%20OR%20"Full%20Text%20Only":antipattern%3F%20OR%20"Full%20Text%20Only":bench*%20OR%20"Full%20Text%20Only":"energy%20profiling"%20OR%20"Full%20Text%20Only":"causal%20profiling")%0AAND%20("Full%20Text%20Only":llm%20OR%20"Full%20Text%20Only":ai%20OR%20"Full%20Text%20Only":clm%20OR%20"Full%20Text%20Only":"language%20model")%29&highlight=true&returnFacets=ALL&returnType=SEARCH&matchPubs=true&ranges=2020_2025_Year>)

```

Works for you?

---

<div class="post-metadata">

**Author:** ![BambusControl](https://forum.obsidian.md/user_avatar/forum.obsidian.md/bambuscontrol/32/56941_2.png) [@BambusControl](https://forum.obsidian.md/u/BambusControl)\
**Post date:** [May 18, 2025, 10:48am UTC](https://forum.obsidian.md/t/previewed-url-during-editing-view-is-different-from-the-rendered-reading-view/100651/3 "2025-05-18T10:48:49Z")

</div>

Thanks, the solution does work.

However, I don’t think it should be the “responsibility” of the user to sanitize URLs. The live preview mode incorrectly detects the URL, which could be fixed in the future.

---

<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:** [June 15, 2025, 10:49am UTC](https://forum.obsidian.md/t/previewed-url-during-editing-view-is-different-from-the-rendered-reading-view/100651/4 "2025-06-15T10:49:28Z")

</div>

Closed on June 15, 2025, 10:49am UTC

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