# Insert Pipe Character in Code Line in Table Column

**URL:** <https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394>\
**Category:** Help\
**Tags:** tables\
**Created:** [May 6, 2025, 3:09am UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394 "2025-05-06T03:09:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ark](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Ark](https://forum.obsidian.md/u/Ark)\
**Post date:** [May 6, 2025, 3:09am UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394/1 "2025-05-06T03:09:03Z")

</div>

### What I’m trying to do

I have a table with description of commands and then the command itself.

| _ **Description** _ | _ **Command** _ |
| --- | --- |
| List all configurations | `ansible-config list` |
| Shows the current config file being used | `ansible-config view` |
| Shows the current settings being used | `ansible-config dump` |
| Search for a variable and its assigned value | `ansible-config dump |

The issue I am having is that, in the last line of the table (which was created by doing right click \> insert table) is inserting a \ in before the | in the code line.

`ansible-config dump | grep GATHERING`

### Things I have tried

Apologies if this has already been answered. I searched “Pipe table”, “Table adding \ before | in code line or block” and a couple permutations like it.

- I tried adding a \ before the | but it does not behave like I expect it
- I tried doing a code block instead of surrounding it in single ` s
- I tried copying the below and pasting it into the column to no avail as it still inserts the :  
`ansible-config dump | grep VARIABLENAME`

---

<div class="post-metadata">

**Author:** ![Ark](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Ark](https://forum.obsidian.md/u/Ark)\
**Post date:** [May 6, 2025, 3:13am UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394/3 "2025-05-06T03:13:59Z")

</div>

It doesn’t seem like the table is formatting the same way it is in my Obsidian document. I have attached a screenshot to show what I mean. I am not inserting the \ and it is appearing on its own. I am thinking there should be a way to escape the pipe character, but I am unsure how.

Screenshot:

 ![Slash Appearing Before Pipe](https://forum.obsidian.md/uploads/default/original/3X/4/a/4ac8404c8f2f70a8bdb6be6058732e3da90b3cb3.png)

Screenshot with me clicked in the line of code:

 ![Screenshot 2025-05-05 231315](https://forum.obsidian.md/uploads/default/original/3X/c/6/c6f57bb84ade694ef32446741f36ae6f20496773.png)

---

<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 6, 2025, 8:10am UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394/4 "2025-05-06T08:10:18Z")

</div>

Hello.

I don’t know what the recommended solution is for the issue you are facing, but in a local test the following _sort of_ works. Suitable enough for your needs?

```auto
| _ **Description** _ | _ **Command** _|
| - | - |
| List all configurations|`ansible-config list`|
| Shows the current config file being used|`ansible-config view`|
| Shows the current settings being used|`ansible-config dump`|
| Search for a variable and its assigned value|`ansible-config dump` \| `grep GATHERING`|

```

 ![table](https://forum.obsidian.md/uploads/default/original/3X/2/3/23a8f49177e9ebcadcc28dd31babb5ae88119c8e.jpeg)

---

<div class="post-metadata">

**Author:** ![blue\_emperor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@blue\_emperor](https://forum.obsidian.md/u/blue_emperor)\
**Post date:** [May 6, 2025, 12:35pm UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394/5 "2025-05-06T12:35:32Z")

</div>

This also works

```txt
| _ **Description** _ | _ **Command** _ |
| -------------------------------------------- | ------------------------------------------------------ |
| List all configurations | `ansible-config list` |
| Shows the current config file being used | `ansible-config view` |
| Shows the current settings being used | `ansible-config dump` |
| Search for a variable and its assigned value | <code>ansible-config dump &vert; grep GATHERING</code> |
| | pipe &vert; |

```

---

<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 6, 2025, 1:33pm UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394/6 "2025-05-06T13:33:49Z")

</div>

Or a pipe [lookalike](https://www.babelstone.co.uk/Unicode/whatisit.html) \>\> `│` \<\<?

```auto
| _ **Description** _ | _ **Command** _|
| - | - |
| List all configurations|`ansible-config list`|
| Shows the current config file being used|`ansible-config view`|
| Shows the current settings being used|`ansible-config dump`|
| Search for a variable and its assigned value|`ansible-config dump │ grep GATHERING`|

```

---

<div class="post-metadata">

**Author:** ![blue\_emperor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@blue\_emperor](https://forum.obsidian.md/u/blue_emperor)\
**Post date:** [May 6, 2025, 6:36pm UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394/7 "2025-05-06T18:36:26Z")

</div>

I tested this on raycast and it seems this is not found on emoji menu. Maybe some other symbol finders support it.

Manually producing │ \>\>

```txt
| | &vert; &boxv; |
| --- | ------------- |

```

---

<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:** [August 4, 2025, 6:37pm UTC](https://forum.obsidian.md/t/insert-pipe-character-in-code-line-in-table-column/100394/8 "2025-08-04T18:37:25Z")

</div>

Closed on August 4, 2025, 6:37pm UTC

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