# Hide or Truncate URLs in Editor using CSS?

**URL:** <https://forum.obsidian.md/t/hide-or-truncate-urls-in-editor-using-css/359>\
**Category:** Help\
**Tags:** custom-css\
**Created:** [May 24, 2020, 4:55am UTC](https://forum.obsidian.md/t/hide-or-truncate-urls-in-editor-using-css/359 "2020-05-24T04:55:24Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![santi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/santi/32/93240_2.png) [@santi](https://forum.obsidian.md/u/santi)\
**Post date:** [October 28, 2020, 1:00pm UTC](https://forum.obsidian.md/t/hide-or-truncate-urls-in-editor-using-css/359/15 "2020-10-28T13:00:56Z")

</div>

hey @death.au thanks for that great code, I used your code as the foundations for this css hack I made

> **\# replaced by §**
>
> > [@death.au](#):
> >
> > ```auto
> > .CodeMirror-code > :not(.CodeMirror-activeline) .cm-formatting-header {
> > display:none;
> > }
> > .CodeMirror-code > :not(.CodeMirror-activeline) .cm-header::before {
> > content: "§ ";
> > }
> > 
> > ```

This is the project I’m working on based on your code:

> [Org-sidian Bullets ◉ Instead Of # For Headers (Inspired by org-mode)](https://forum.obsidian.md/t/org-sidian-bullets-instead-of-for-headers-inspired-by-org-mode/7524)

**There’s a strange bug I can’t seem to fix,** could you please take a quick look at it

* * *

Some headings get the symbols repeated in a strange way

It happens to normal text sometimes

**but the bug I can always replicate is** when I do something like this:

I create a normal heading

`# [[test heading]]`

Instead of displaying this  
`§ [[test heading]]`

it displays this  
`§ [[§ test heading§]]`

 ![bug-symbol-2020-10-28](https://forum.obsidian.md/uploads/default/original/2X/5/5dd6e5f0159967a00fcaf9265ef1c5d493609e21.png)

I’m using your code exactly as is, with a blank obsdian.css to make sure nothing from my theme interferes.

* * *

I would really appreciate any help, since my css hack fully depends on this.

Thank you!

---

_[View the full topic](https://forum.obsidian.md/t/hide-or-truncate-urls-in-editor-using-css/359)._
