# Markdown link broken

**URL:** <https://forum.getkirby.com/t/markdown-link-broken/4461>\
**Category:** Questions\
**Tags:** v2\
**Created:** [June 19, 2016, 3:36pm UTC](https://forum.getkirby.com/t/markdown-link-broken/4461 "2016-06-19T15:36:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndiLeni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndiLeni](https://forum.getkirby.com/u/AndiLeni)\
**Post date:** [June 19, 2016, 3:36pm UTC](https://forum.getkirby.com/t/markdown-link-broken/4461/1 "2016-06-19T15:36:38Z")

</div>

Hello,

I tried to use the markdown language in my new template. But it does not render links right. Text is fine. Email not. Has someone had a problem like this before?

AndiLeni

Here is the code I used:

```
<div class="container">

  <div class="content"><?php echo $page->text()->markdown() ?></div>

</div>

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 19, 2016, 4:39pm UTC](https://forum.getkirby.com/t/markdown-link-broken/4461/2 "2016-06-19T16:39:15Z")

</div>

If you want to render kirbytags like

```auto
(email: blabla@example.com)

```

you have to use the `kirbytext()` or short `kt()` methods to render kirbytext in your templates:

```auto
<div class="content"><?php echo $page->text()->kt() ?></div>

```

---

<div class="post-metadata">

**Author:** ![AndiLeni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndiLeni](https://forum.getkirby.com/u/AndiLeni)\
**Post date:** [June 19, 2016, 4:44pm UTC](https://forum.getkirby.com/t/markdown-link-broken/4461/3 "2016-06-19T16:44:03Z")

</div>

Thank you very much. This solved the problem. I thought it would be enough to use markdown(). Read this somewhere in the docs.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 19, 2016, 4:46pm UTC](https://forum.getkirby.com/t/markdown-link-broken/4461/4 "2016-06-19T16:46:35Z")

</div>

No, `markdown()` is only useful for pure markdown documents, not for rendering kirbytext.

---

<div class="post-metadata">

**Author:** ![AndiLeni](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndiLeni](https://forum.getkirby.com/u/AndiLeni)\
**Post date:** [June 19, 2016, 4:48pm UTC](https://forum.getkirby.com/t/markdown-link-broken/4461/5 "2016-06-19T16:48:05Z")

</div>

Ok. Then it is definitely my fault. Thanks again for your help!

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:57pm UTC](https://forum.getkirby.com/t/markdown-link-broken/4461/6 "2025-02-06T16:57:45Z")

</div>


