# Markdown in Kate

**URL:** <https://discuss.kde.org/t/markdown-in-kate/21248>\
**Category:** Help\
**Tags:** kate\
**Created:** [September 13, 2024, 5:58pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248 "2024-09-13T17:58:07Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaKDE](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/m/c67d28/32.png) [@MichaKDE](https://discuss.kde.org/u/MichaKDE)\
**Post date:** [September 13, 2024, 5:58pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/1 "2024-09-13T17:58:07Z")

</div>

Based on [this topic](https://discuss.kde.org/t/21224/2) I enabled “Document Preview” in Kate Settings \> Plugins. Looking at my test.md in Kate, I do not see much markdon-formatting; in Okular it’s much more impressive (ref. my screenshot):  
 ![test Kate Okular](https://discuss-cdn.kde.org/uploads/default/original/2X/4/4a0c8aff960e5df1589f3745d21717e3587681ab.png)  
Is this the designed behaviour for Kate or am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![johnandmegh](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/johnandmegh/32/767_2.png) [@johnandmegh](https://discuss.kde.org/u/johnandmegh)\
**Post date:** [September 13, 2024, 6:04pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/2 "2024-09-13T18:04:11Z")

</div>

When you enable Document Preview, a sidebar should appear on the right-hand side of the Kate window like this:

![image](https://discuss-cdn.kde.org/uploads/default/original/2X/b/bdc1e310f6d6438bcf29cf21dde57aa4d1096ecc.png)

When the Preview button is clicked, you should then get the type of preview you’re thinking of:

 ![image](https://discuss-cdn.kde.org/uploads/default/original/2X/7/7c4cd432055158b6cd3d64892abd071d782e9514.png)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![skyfishgoo](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/skyfishgoo/32/2001_2.png) [@skyfishgoo](https://discuss.kde.org/u/skyfishgoo)\
**Post date:** [September 13, 2024, 8:50pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/3 "2024-09-13T20:50:22Z")

</div>

i much prefer the way typroa handles it by making the text entry show real time rendering of the markdown as you type.

you can also easily switch back and for between the markdown text and the rendered version without losing your place in the document.

---

<div class="post-metadata">

**Author:** ![johnandmegh](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/johnandmegh/32/767_2.png) [@johnandmegh](https://discuss.kde.org/u/johnandmegh)\
**Post date:** [September 13, 2024, 11:35pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/4 "2024-09-13T23:35:28Z")

</div>

If you click the “Play” button in the top of the Document Preview, you’ll get live-updating Markdown rendering:

 ![image](https://discuss-cdn.kde.org/uploads/default/original/2X/a/a85169d7e6328180a567eb89215bd11ebd63a64b.png)

To be fair, I’m not sure if there’s a way to get the preview to “follow your cursor around” in the way I think you’re describing.

FWIW, I’ve also dabbled with using [Zettlr](https://flathub.org/apps/com.zettlr.Zettlr) for Markdown editing, but I find that I missed some of the feel of navigating around Kate and ended up (mostly) returning 🙂

---

<div class="post-metadata">

**Author:** ![skyfishgoo](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/skyfishgoo/32/2001_2.png) [@skyfishgoo](https://discuss.kde.org/u/skyfishgoo)\
**Post date:** [September 14, 2024, 1:16am UTC](https://discuss.kde.org/t/markdown-in-kate/21248/5 "2024-09-14T01:16:40Z")

</div>

yes, typora has all the text on the same window and you can switch between rendered view or markdown using a toggle so that your cursor remains in the same place

you can write in markdown and see it render as you type, it’s quite intuitive.

tried zettlr but couldn’t figure out how to render the markdown into html, so it’s not for me.

---

<div class="post-metadata">

**Author:** ![MichaKDE](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/m/c67d28/32.png) [@MichaKDE](https://discuss.kde.org/u/MichaKDE)\
**Post date:** [September 14, 2024, 6:47am UTC](https://discuss.kde.org/t/markdown-in-kate/21248/7 "2024-09-14T06:47:37Z")

</div>

Thank you @johnandmegh!

> [@johnandmegh](#):
>
> When you enable Document Preview, a sidebar should appear on the right-hand side of the Kate window like this:  
> When the Preview button is clicked, …:

My Settings \> Kate-settings \> Dokument preview “show the document in target format” is checked, but I don’t have the button you showed. Here it looks like this:

 ![Kate MissingIcon](https://discuss-cdn.kde.org/uploads/default/original/2X/d/d6f72c005288983ade44a388bb53d47b74c284f3.png)

---

<div class="post-metadata">

**Author:** ![medin](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/medin/32/2437_2.png) [@medin](https://discuss.kde.org/u/medin)\
**Post date:** [September 14, 2024, 11:42am UTC](https://discuss.kde.org/t/markdown-in-kate/21248/8 "2024-09-14T11:42:50Z")

</div>

View\> Sidebar Buttons\> Show Preview Button

---

<div class="post-metadata">

**Author:** ![skyfishgoo](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/skyfishgoo/32/2001_2.png) [@skyfishgoo](https://discuss.kde.org/u/skyfishgoo)\
**Post date:** [September 14, 2024, 1:01pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/9 "2024-09-14T13:01:29Z")

</div>

i like it

available on flathub, instant render as you type, works with folders so you can easily maintain a collection of .md files, open source.

nice option, thanks.

---

<div class="post-metadata">

**Author:** ![MichaKDE](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/m/c67d28/32.png) [@MichaKDE](https://discuss.kde.org/u/MichaKDE)\
**Post date:** [September 14, 2024, 1:03pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/10 "2024-09-14T13:03:04Z")

</div>

Thank you @medin:

> [@medin](#):
>
> View\> Sidebar Buttons\> Show Preview Button

is activated here, ref screenshot:

 ![ShowPreviewButtons](https://discuss-cdn.kde.org/uploads/default/original/2X/f/f4137726a96a4826b794f9c8484731553b8761f6.png)

---

<div class="post-metadata">

**Author:** ![medin](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/medin/32/2437_2.png) [@medin](https://discuss.kde.org/u/medin)\
**Post date:** [September 14, 2024, 2:13pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/11 "2024-09-14T14:13:37Z")

</div>

Ctrl+Alt+Shift+F

---

<div class="post-metadata">

**Author:** ![MichaKDE](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/m/c67d28/32.png) [@MichaKDE](https://discuss.kde.org/u/MichaKDE)\
**Post date:** [September 14, 2024, 3:04pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/12 "2024-09-14T15:04:35Z")

</div>

Thank you @medin:

- Left screenshot before Ctrl+Alt+Shift+F.
- Centerer screenshot after Ctrl+Alt+Shift+F.
- Right screenshot after clicking the `Preview`-button.  
 ![NoPreviewAvailable](https://discuss-cdn.kde.org/uploads/default/original/2X/d/d660fcf7ac69f3f1be966acbc764aed7abe2efc4.png)

Preview window reprorts `No preview available`; clicking the `automated actualisation` does not change anything.

---

<div class="post-metadata">

**Author:** ![johnandmegh](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/johnandmegh/32/767_2.png) [@johnandmegh](https://discuss.kde.org/u/johnandmegh)\
**Post date:** [September 14, 2024, 5:23pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/13 "2024-09-14T17:23:56Z")

</div>

Just to double-check, is this where you enabled the Document Preview plugin?

 ![image](https://discuss-cdn.kde.org/uploads/default/original/2X/b/be9422d83690ff30435f2568f462df2f0bc60bcd.png)

And, do you have the Markdown KPart installed on your system? In Fedora it’s packaged as `markdownpart`

Edit - and it looks like the package name is the same on Arch as well

---

<div class="post-metadata">

**Author:** ![MichaKDE](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/m/c67d28/32.png) [@MichaKDE](https://discuss.kde.org/u/MichaKDE)\
**Post date:** [September 14, 2024, 7:20pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/14 "2024-09-14T19:20:29Z")

</div>

Thank you @johnandmegh:

> Just to double-check, is this where you enabled the Document Preview plugin?

Here are my settings (German language):

 ![Modules](https://discuss-cdn.kde.org/uploads/default/original/2X/9/9f7f3bc631891e81ea187bfa2691a3f885a11854.png)  
Markdownpart is not installed here (MANJARO):  
 ![MarkdownPart](https://discuss-cdn.kde.org/uploads/default/original/2X/5/50f1b0d70c9e91b49151ef9829b042e44e8c87ca.png)  
Should I give it a try and if yes, which one?

---

<div class="post-metadata">

**Author:** ![johnandmegh](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/johnandmegh/32/767_2.png) [@johnandmegh](https://discuss.kde.org/u/johnandmegh)\
**Post date:** [September 14, 2024, 7:38pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/15 "2024-09-14T19:38:32Z")

</div>

The `markdownpart` package contains the actual code for rendering Markdown content in KDE apps (not just the in-editor syntax highlighting that already exists in Kate/KWrite), so yes that would be needed for the Markdown preview to function.

As far as which one, the `markdownpart` package is described as a KPart, for KDE apps, and the `gedit-markdownpreview-git` AUR package is described as a plugin for `gedit` (the GNOME text editor). The former would be made to function in support of KDE apps, the latter would be made to function in support of the specific `gedit` GNOME app.

Hope that helps,

---

<div class="post-metadata">

**Author:** ![MichaKDE](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/m/c67d28/32.png) [@MichaKDE](https://discuss.kde.org/u/MichaKDE)\
**Post date:** [September 15, 2024, 8:11am UTC](https://discuss.kde.org/t/markdown-in-kate/21248/16 "2024-09-15T08:11:37Z")

</div>

Thank you @johnandmegh, works perfect!

---

<div class="post-metadata">

**Author:** ![kde.glamour217](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/k/e274bd/32.png) [@kde.glamour217](https://discuss.kde.org/u/kde.glamour217)\
**Post date:** [August 14, 2025, 5:57pm UTC](https://discuss.kde.org/t/markdown-in-kate/21248/17 "2025-08-14T17:57:29Z")

</div>

Thank you @johnandmegh, that workked for me as well. 😊

---

<div class="post-metadata">

**Author:** ![aitranslator](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@aitranslator](https://discuss.kde.org/u/aitranslator)\
**Post date:** [April 14, 2026, 11:50am UTC](https://discuss.kde.org/t/markdown-in-kate/21248/18 "2026-04-14T11:50:47Z")

</div>

Hello,

How can I increase the font size of the mono font block in the preview mode? “Ctrl+Mouse Scroll” increases all parts except the said mono font text block. Asking AI and tried various ways suggested by it, yielded to no desired result. I’m looking for a permanent solution to this “issue”?

Quick tried ways:

1. `mkdir -p ~/.local/share/kmarkdownpart`

2. nano ~/.local/share/kmarkdownpart/style.css

3. /\* Scales the text you see in your screenshots \*/  
body {  
font-size: 1.1rem !important;  
line-height: 1.6;  
}

4. nano ~/.config/kmarkdownpartrc

5. [General]  
StyleSheet=~/.local/share/kmarkdownpart/style.css

6. 

Debian 13.4 Trixie KDE Plasma DE

Thanks in advance!

 ![Screenshot_20260414_124721](https://discuss-cdn.kde.org/uploads/default/original/3X/2/a/2a39151268355d40ff223c27faec15f6a03e8c5f.png)
