MeshWorld India LogoMeshWorld.
HowToGhostwriterMarkdownText EditorLinuxUbuntu5 min read

How to Install Ghostwriter Markdown Editor on Ubuntu & Linux (2026)

Vishnu
By Vishnu
·
Vishnu
Updated by Vishnu
|Updated: Jul 24, 2026
How to Install Ghostwriter Markdown Editor on Ubuntu & Linux (2026)

Ghostwriter is a distraction-free, open-source Markdown text editor developed and maintained as part of the official KDE Gear application suite. Designed specifically for authors, technical writers, bloggers, and students, Ghostwriter provides a clean writing environment with real-time HTML preview sidebars, document outline navigation, customizable themes, and session statistics.

Markdown was created in 2004 by John Gruber and Aaron Swartz as a lightweight formatting language for plain text. Today, Markdown is the universal standard across major publishing and developer platforms including WordPress, DEV.to, Hashnode, GitHub, Jekyll, Hugo, and Docusaurus.

Whether you write articles for technical blogs or maintain project notes on Ubuntu 24.04 LTS (Noble Numbat) or 22.04 LTS (Jammy Jellyfish), here is how to install and configure Ghostwriter in 2026.

Key Takeaways

  • Ghostwriter is maintained by the KDE community (org.kde.ghostwriter): providing high-performance Qt6 UI rendering and native desktop integration.
  • Flatpak via Flathub is the official upstream release path recommended by KDE developers.
  • Native APT packages are available directly in default Ubuntu repositories (`sudo apt install ghostwriter`).
  • Install Pandoc (`sudo apt install pandoc`) to enable exporting Markdown directly into PDF, DOCX, EPUB, and HTML formats.

What makes Ghostwriter a great distraction-free Markdown editor?

Ghostwriter focuses on eliminating UI clutter so writers can maintain focus on drafting content.

Complete Feature List

  • Distraction-Free Mode: Fullscreen writing mode that hides all window decorations, menus, and taskbars.
  • Hemingway Mode: Disables your backspace and delete keys, encouraging continuous forward drafting without self-editing interruption.
  • Focus Mode: Highlights the active line, sentence, or paragraph while softly fading surrounding text.
  • Live HTML Preview: Renders styled HTML document previews side-by-side in real time as you type.
  • Document Outline Sidebar: Automatically generates table-of-contents navigation based on Markdown headers (#, ##, ###).
  • Session & Document Statistics: Real-time tracking of word counts, character counts, paragraph counts, sentence counts, reading time, and writing session stats.
  • Drag-and-Drop Image Insertion: Drag image files directly into the editor pane to generate formatted Markdown image links (![alt](path)).
  • Built-in & Custom Themes: Includes dark, light, and custom color themes tailored for long writing sessions.
  • Multi-Format Exporting: Native Pandoc integration for converting Markdown files into PDF, Microsoft Word (.docx), EPUB, HTML, and ODT formats.
  • Free and Open-Source: Distributed under the GNU General Public License v3 (GPLv3).

How do you install Ghostwriter using Flatpak on Linux?

Since Ghostwriter’s integration into the KDE project, Flathub receives the fastest software updates and newest Qt6 features.

Step 1: Enable Flatpak Support

Open terminal (Ctrl+Alt+T) and run:

bash
sudo apt update
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Step 2: Install Ghostwriter from Flathub

bash
flatpak install flathub org.kde.ghostwriter

To launch the Flatpak build:

bash
flatpak run org.kde.ghostwriter

How do you install Ghostwriter using APT?

Ghostwriter is available natively in default Ubuntu package repositories for quick setup via apt or the Ubuntu Software Center.

bash
sudo apt update
sudo apt install -f ghostwriter

One-line terminal shortcut:

bash
sudo apt update && sudo apt install -f ghostwriter -y

How do you install Ghostwriter via PPA on older Ubuntu releases?

For older Ubuntu LTS releases (or to access original PPA repositories), add the PPA maintained by Ghostwriter’s original creator:

bash
sudo add-apt-repository ppa:wereturtle/ppa
sudo apt update
sudo apt install -f ghostwriter

How do you export Markdown to PDF and Word using Pandoc in Ghostwriter?

Ghostwriter uses Pandoc as its underlying conversion engine for document exports.

Step 1: Install Pandoc and LaTeX Utilities

To enable full document export capabilities on Ubuntu:

bash
sudo apt install pandoc texlive-extra-utils

Step 2: Export Documents in Ghostwriter

  1. Open your document in Ghostwriter.
  2. Click File > Export (or press Ctrl+E).
  3. Select your target format: PDF, Microsoft Word (.docx), EPUB, HTML, or OpenDocument (.odt).

How do you launch Ghostwriter after installation?

Launch Ghostwriter using either method:

  • Application Launcher: Open the application menu, search for Ghostwriter, and click the icon.
  • Terminal Command: Type ghostwriter and press Enter.

Frequently Asked Questions (PAA)

Is Ghostwriter restricted to KDE Plasma desktop?

No. Although Ghostwriter is developed under the KDE Gear project, it uses cross-platform Qt libraries and runs natively on GNOME, XFCE, Cinnamon, MATE, macOS, and Windows.

How do I activate Hemingway Mode in Ghostwriter?

Click View > Hemingway Mode (or press Ctrl+Shift+H). This disables your backspace key so you write continuously without stopping to edit draft text.

Can I insert custom CSS stylesheets into the live HTML preview?

Yes. Go to Preferences > Preview, click Custom CSS, and select a .css file to style your live preview pane to match your site layout.

How do I uninstall Ghostwriter installed via APT?

bash
sudo apt remove --purge ghostwriter
sudo apt autoremove

Share_This Twitter / X
Vishnu
Written By

Vishnu

Founder & Principal Architect at MeshWorld. Senior engineer and instructor specializing in AI agent systems, scalable web architecture, and modern development workflows.

Vishnu
Updated By

Vishnu

Founder & Principal Architect at MeshWorld. Senior engineer and instructor specializing in AI agent systems, scalable web architecture, and modern development workflows.

Enjoyed this article?

Support MeshWorld and help us create more technical content