# Obsidian failed to recognize "|" in a table cell

**URL:** <https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397>\
**Category:** Help\
**Created:** [September 8, 2025, 8:33am UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397 "2025-09-08T08:33:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylorren](https://forum.obsidian.md/user_avatar/forum.obsidian.md/taylorren/32/84644_2.png) [@taylorren](https://forum.obsidian.md/u/taylorren)\
**Post date:** [September 8, 2025, 8:33am UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/1 "2025-09-08T08:33:23Z")

</div>

### Steps to reproduce

1. Create a simple table with a few columns.
2. In one of the cell, try to input something containing “|”. For example, `x<10 || x>20`.

### Expected result

A line formatted as code block, with the desired output: x\<10 || x\>20

### Actual result

OB interprets “|” as column separator and just displays “`x\<10” and discards everything behind… (not displaying “|| x\>20”).

### Environment

SYSTEM INFO:  
Obsidian version: v1.9.12  
Installer version: v1.8.10  
Operating system: Windows 11 Pro 10.0.22631  
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: 3  
Plugins enabled: 3  
1: Print v0.3.8  
2: Mermaid Tools v1.3.0  
3: Better Export PDF v1.11.0

* * *

### Additional information

1. If I input “`x<10 \|\| x>20", trying to escapge the "|", OB will lieterally output: x < 10 \|\| x > 20, which means under influence of "`…`”, the "" is not escaped.
2. Correct solution under OB: `<code>&#124;&#124;</code>`, use HTML entity.
3. VSC can do well with simple “`\|\|`”, which is simpler and follows my intuition.

---

<div class="post-metadata">

**Author:** ![Pch](https://forum.obsidian.md/user_avatar/forum.obsidian.md/pch/32/8496_2.png) [@Pch](https://forum.obsidian.md/u/Pch)\
**Post date:** [September 8, 2025, 10:26am UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/2 "2025-09-08T10:26:52Z")

</div>

I can only guess that this could relevant 😊 :

> [@Source Mode: Pipe Problems in tables: Math\\Latex, Inline code and separator |](https://forum.obsidian.md/t/source-mode-pipe-problems-in-tables-math-latex-inline-code-and-separator/3692):
>
> | should be ignored by the parser when it is within a latex block. Escaping the pipe with \| is not a solution because \| is also valid latex input. | | | | | | |---|---|---|---|---| | $a|b$ | | | | | | $a\|b$ | | | | | | $a\vert b$ | | | | | Workaroud: if you need | user \vert

---

<div class="post-metadata">

**Author:** ![taylorren](https://forum.obsidian.md/user_avatar/forum.obsidian.md/taylorren/32/84644_2.png) [@taylorren](https://forum.obsidian.md/u/taylorren)\
**Post date:** [September 8, 2025, 10:54am UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/3 "2025-09-08T10:54:39Z")

</div>

Agree to a certain extent…

---

<div class="post-metadata">

**Author:** ![Craig](https://forum.obsidian.md/user_avatar/forum.obsidian.md/craig/32/8831_2.png) [@Craig](https://forum.obsidian.md/u/Craig)\
**Post date:** [September 8, 2025, 2:26pm UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/4 "2025-09-08T14:26:16Z")

</div>

Hmm, the escaped pipes worked for me:

```auto
| Col1 | Col2 |
| ---- | ------------------ |
| | x < 10 \|\| x > 20 |

```

![image](https://forum.obsidian.md/uploads/default/original/3X/4/4/448e835a398007218fd8c310db1cb3952ff9b743.png)

Am I doing something different than you are?

---

<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:** [September 8, 2025, 4:03pm UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/5 "2025-09-08T16:03:32Z")

</div>

Relevant threads:

> [@Source Mode: Pipe Problems in tables: Math\\Latex, Inline code and separator |](https://forum.obsidian.md/t/source-mode-pipe-problems-in-tables-math-latex-inline-code-and-separator/3692):
>
> | should be ignored by the parser when it is within a latex block. Escaping the pipe with \| is not a solution because \| is also valid latex input. | | | | | | |---|---|---|---|---| | $a|b$ | | | | | | $a\|b$ | | | | | | $a\vert b$ | | | | | Workaroud: if you need | user \vert

> [@Live Preview: Backslash '\\' is auto-inserted into inline code and math in tables](https://forum.obsidian.md/t/live-preview-backslash-is-auto-inserted-into-inline-code-and-math-in-tables/83449):
>
> Steps to reproduce create a normal table with at least 2 columns and 2 rows type into one of the cells this bit of code: ls | column Did you follow the [troubleshooting guide](https://forum.obsidian.md/t/about-the-bug-reports-category/24/10)? [Y/N] Yes, the bug persists even in sandbox mode Expected result I would expect to see my code exactly as I entered it: `ls | column` Actual result Instead of seeing the code I typed, a backslash is auto-inserted into the middle of it like so: ls \| column Deleting the '' results in the ‘|’ being deleted as well. I c…

---

<div class="post-metadata">

**Author:** ![anon5277159](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@anon5277159](https://forum.obsidian.md/u/anon5277159)\
**Post date:** [September 8, 2025, 7:34pm UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/6 "2025-09-08T19:34:21Z")

</div>

Hello.

The OP mentions wanting to put the text in a code block:

```auto
| No Code Block | In a Code Block |
| ---- | -------------------- |
|x < 10 \|\| x > 20| `x < 10 \|\| x > 20` |

```

🤔

---

<div class="post-metadata">

**Author:** ![Craig](https://forum.obsidian.md/user_avatar/forum.obsidian.md/craig/32/8831_2.png) [@Craig](https://forum.obsidian.md/u/Craig)\
**Post date:** [September 8, 2025, 8:05pm UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/7 "2025-09-08T20:05:28Z")

</div>

Oh, I see now. Thank you for clarifying, and thank you for the helpful example.

That’s a tough one – a pipe within a code block within a table.

I can’t think of any way around it. Bummer. ☹

---

<div class="post-metadata">

**Author:** ![JLDiaz](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jldiaz/32/82411_2.png) [@JLDiaz](https://forum.obsidian.md/u/JLDiaz)\
**Post date:** [September 8, 2025, 8:26pm UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/8 "2025-09-08T20:26:41Z")

</div>

Horrible, terrible, hack 😜

````auto
```dataviewjs
dv.table(
 ["No Code Block", "In a Code Block", "In a Math Block"],
[["x< 10 || x > 20", "`x < 10 || x > 20`", "$x< 10 || x > 20$"]]
)
```

````

Result:

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

---

<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:** [December 7, 2025, 8:27pm UTC](https://forum.obsidian.md/t/obsidian-failed-to-recognize-in-a-table-cell/105397/9 "2025-12-07T20:27:32Z")

</div>

Closed on December 7, 2025, 8:27pm UTC

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