# Live-Preview incorrectly hides texts in square brakets

**URL:** <https://forum.obsidian.md/t/live-preview-incorrectly-hides-texts-in-square-brakets/30899>\
**Category:** Bug reports\
**Tags:** repro, editor-parser\
**Created:** [January 19, 2022, 2:35pm UTC](https://forum.obsidian.md/t/live-preview-incorrectly-hides-texts-in-square-brakets/30899 "2022-01-19T14:35:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![solace](https://forum.obsidian.md/user_avatar/forum.obsidian.md/solace/32/58778_2.png) [@solace](https://forum.obsidian.md/u/solace)\
**Post date:** [April 7, 2025, 3:49am UTC](https://forum.obsidian.md/t/live-preview-incorrectly-hides-texts-in-square-brakets/30899/3 "2025-04-07T03:49:56Z")

</div>

I was going to create a new issue but it surfaced this one, so reviving and appending.

### Steps to reproduce

In Live Preview, consecutive square-bracketed text, specifically square bracketed text followed by a link creates an inconsistent display and hides content:

```auto
[field1:: foo] [link](link)  
[field1:: foo] [[wikilink]]

```

### Did you follow the troubleshooting guide? [Y]

This has been tested in restricted mode as well as with and without double colons (used by the dataview plugin for inline fields).

Similar but unrelated posts:

- [(Live Preview) Don't color square bracketed text as a link unless it's part of a link](https://forum.obsidian.md/t/live-preview-dont-color-square-bracketed-text-as-a-link-unless-its-part-of-a-link/79896) is related to styling not rendering
- [Editor / Live Preview breaks for URLs with square brackets](https://forum.obsidian.md/t/editor-live-preview-breaks-for-urls-with-square-brackets/97371) refers to square brackets within link text

### Expected result

The expectation is to have the markdown or wiki-style link correctly rendered after the metadata field / single square bracketed text.

### Actual result

As per screenshot, the text portion of the markdown link is missing from the first markdown link example, and only a trailing square bracket is seen in the wiki-style link example.

 ![Screenshot 2025-04-07 at 11.24.04](https://forum.obsidian.md/uploads/default/original/3X/0/6/06703c6d0f8527d53e6b8431dc93fde307861ec4.png)

### Environment

Obsidian Version 1.8.9 (Installer 1.8.4)  
macOS 15.3.2

* * *

### Additional information

I understand how this might be a conflict with reference links ([Support Reference Links in Edit mode/Live Preview (reference-style)](https://forum.obsidian.md/t/support-reference-links-in-edit-mode-live-preview-reference-style/32286)) but the links are correctly formatted and there is a space between the two items.

### Workaround

1. Escaping the first bracket in the single square-bracketed text or field will allow the second square-bracketed item to render correctly. eg. `\\[field1:: foo] [[wikilink]]`
2. Adding another character between the two items

There are some instances where the escape character is still rendered (unable to consistently reproduce when this happens, so not officially reporting, but leaving here as a point on record).

The workarounds are not optimal but because there is an option I understand this will deprioritise the issue (even further given first report in 2022), but _it would be nice_ if this could be fixed, please.

---

_[View the full topic](https://forum.obsidian.md/t/live-preview-incorrectly-hides-texts-in-square-brakets/30899)._
