# Wrong formating for code blocks

**URL:** <https://discuss.write.as/t/wrong-formating-for-code-blocks/341>\
**Category:** Bugs\
**Created:** [February 3, 2019, 8:31am UTC](https://discuss.write.as/t/wrong-formating-for-code-blocks/341 "2019-02-03T08:31:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aris](https://discuss.write.as/user_avatar/discuss.write.as/aris/32/58_2.png) [@Aris](https://discuss.write.as/u/Aris)\
**Post date:** [February 3, 2019, 8:31am UTC](https://discuss.write.as/t/wrong-formating-for-code-blocks/341/1 "2019-02-03T08:31:44Z")

</div>

Hello,

I think have some kind of ugly problem with **hashtag** function in Write.as and code blocks…

Code block source :

```auto
#blog-title a {
    background-image: url(https://snap.as/img/logo.png);
    background-position: center;
    background-repeat: no-repeat;
    color: rgba(0,0,0,0);
    display: inline-block;
    width: 100px;
    height: 100px;
    background-size: 100px;
    border-radius: 50%;
}
#post #blog-title a, #subpage #blog-title a {
    /* Change size of logo on post and tags pages */
    width: 50px;
    height: 50px;
    background-size: 50px;
}

```

Code block output :

```auto
<a href="/lab/tag:blog" class="hashtag"><span>#</span><span class="p-category">blog</span></a>-title a {
    background-image: url(https://snap.as/img/logo.png);
    background-position: center;
    background-repeat: no-repeat;
    color: rgba(0,0,0,0);
    display: inline-block;
    width: 100px;
    height: 100px;
    background-size: 100px;
    border-radius: 50%;
}
<a href="/lab/tag:post" class="hashtag"><span>#</span><span class="p-category">post</span></a> <a href="/lab/tag:blog" class="hashtag"><span>#</span><span class="p-category">blog</span></a>-title a, <a href="/lab/tag:subpage" class="hashtag"><span>#</span><span class="p-category">subpage</span></a> <a href="/lab/tag:blog" class="hashtag"><span>#</span><span class="p-category">blog</span></a>-title a {
    /* Change size of logo on post and tags pages */
    width: 50px;
    height: 50px;
    background-size: 50px;
}

```

Sorry to disturb you from Fosdem sweetness 😊 😉

---

<div class="post-metadata">

**Author:** ![Aris](https://discuss.write.as/user_avatar/discuss.write.as/aris/32/58_2.png) [@Aris](https://discuss.write.as/u/Aris)\
**Post date:** [February 3, 2019, 10:19am UTC](https://discuss.write.as/t/wrong-formating-for-code-blocks/341/2 "2019-02-03T10:19:58Z")

</div>

Discovered there is an issue on Github:

> <https://github.com/writeas/writefreely/issues/6>

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [February 4, 2019, 7:04pm UTC](https://discuss.write.as/t/wrong-formating-for-code-blocks/341/3 "2019-02-04T19:04:54Z")

</div>

Yep, this is fixed and live on Write.as now!

---

<div class="post-metadata">

**Author:** ![Aris](https://discuss.write.as/user_avatar/discuss.write.as/aris/32/58_2.png) [@Aris](https://discuss.write.as/u/Aris)\
**Post date:** [February 4, 2019, 7:24pm UTC](https://discuss.write.as/t/wrong-formating-for-code-blocks/341/4 "2019-02-04T19:24:53Z")

</div>

Good News… I will try it tonight 🤩

---

<div class="post-metadata">

**Author:** ![Aris](https://discuss.write.as/user_avatar/discuss.write.as/aris/32/58_2.png) [@Aris](https://discuss.write.as/u/Aris)\
**Post date:** [February 5, 2019, 6:14am UTC](https://discuss.write.as/t/wrong-formating-for-code-blocks/341/5 "2019-02-05T06:14:03Z")

</div>

Work nice on Write.as : [https://lab.papatheodorou.net/write-freely-ajouter-un-logo-a-son-blog](https://lab.papatheodorou.net/write-freely-ajouter-un-logo-a-son-blog)
