Title: Djot Markup
Author: markmarkmark
Published: <strong>4 de febrer de 2026</strong>
Last modified: 31 de març de 2026

---

Cerca extensions

![](https://s.w.org/plugins/geopattern-icon/djot-markup.svg)

# Djot Markup

 Per [markmarkmark](https://profiles.wordpress.org/markmarkmark/)

[Baixa](https://downloads.wordpress.org/plugin/djot-markup.1.5.11.zip)

 * [Detalls](https://ca.wordpress.org/plugins/djot-markup/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/djot-markup/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/djot-markup/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/djot-markup/#developers)

 [Suport](https://wordpress.org/support/plugin/djot-markup/)

## Descripció

Djot Markup adds support for the [Djot](https://djot.net/) markup language in WordPress.
Djot is created by John MacFarlane (creator of CommonMark and Pandoc) and offers
cleaner syntax with more consistent parsing rules than Markdown.

#### Features

 * **Full Djot Support**: Headings, emphasis, links, images, code blocks, tables,
   footnotes, and more
 * **Shortcode Support**: Use `[djot]...[/djot]` in your content
 * **Content Filtering**: Automatically process `{djot}...{/djot}` blocks
 * **Table of Contents**: Automatic TOC generation from headings with configurable
   levels and position
 * **Safe Mode**: XSS protection for untrusted content
 * **Syntax Highlighting**: Server-side highlighting with Torchlight Engine
 * **Admin Settings**: Easy configuration through WordPress admin
 * **Template Tags**: Functions for theme developers
 * **Dark Mode Support**: CSS adapts to dark mode preferences

#### Usage

**Shortcode:**

    ```
    [djot]
    # Hello World

    This is _emphasized_ and this is *strong*.

    - List item 1
    - List item 2
    [/djot]
    ```

**Template Tags:**

    ```
    <?php
    $html = wpdjot_to_html('# Hello *World*!');
    wpdjot_the('# _Hello_ *World*!');
    ?>
    ```

#### Links

 * [WordPress.org Plugin Page](https://wordpress.org/plugins/djot-markup/)
 * [Djot Syntax Reference](https://djot.net/)
 * [GitHub Repository](https://github.com/php-collective/wp-djot)
 * [Report Issues](https://github.com/php-collective/wp-djot/issues)

## Blocs

Aquesta extensió proporciona 1 bloc.

 *   Djot Write content using Djot markup language.

## Instal·lació

 1. Upload the plugin files to `/wp-content/plugins/wp-djot`
 2. Run `composer install` in the plugin directory
 3. Activate the plugin through the ‘Plugins’ screen in WordPress
 4. Configure settings under Settings  Djot Markup

## PMF

### What is Djot?

Djot is a light markup syntax created by John MacFarlane, the creator of CommonMark
and Pandoc. It’s designed to be a cleaner, more consistent alternative to Markdown.

### Why use Djot instead of Markdown?

Djot has cleaner syntax rules, proper footnote support, attributes for styling, 
and avoids many of Markdown’s parsing ambiguities.

### Is it safe for user comments?

Yes! Enable “Safe Mode” in settings to sanitize untrusted content and prevent XSS
attacks. Comments always use safe mode by default.

### Can I use my own CSS?

Yes, you can override the default styles by targeting the `.djot-content` class 
in your theme’s CSS.

### Does it work with Gutenberg?

Yes, you can use the shortcode block to add Djot content in the block editor.

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«Djot Markup» és programari de codi obert. La següent gent ha col·laborat en aquesta
extensió.

Col·laboradors

 *   [ markmarkmark ](https://profiles.wordpress.org/markmarkmark/)

[Traduïu «Djot Markup» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/djot-markup)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/djot-markup/), baixeu-
vos el [repositori SVN](https://plugins.svn.wordpress.org/djot-markup/), o subscriviu-
vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/djot-markup/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/djot-markup/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 1.5.7

 * Added experimental visual editor (WYSIWYG) for Djot blocks powered by Tiptap
 * Added Experimental settings section with visual editor mode options
 * Fixed visual editor round-trip preservation for all Djot elements
 * Fixed different list types (bullet/ordered/task) colliding without blank lines

#### 1.5.6

 * Fixed task list checkboxes stripped by wp_kses_post
 * Fixed dark mode TOC text color

#### 1.5.5

 * Added Djot syntax highlighting for code blocks via djot-grammars
 * Fixed code block filename markers leaking into output
 * Updated php-collective/djot to 0.1.17

#### 1.5.4

 * Fixed Torchlight line highlighting CSS selectors for annotated lines
 * Removed opinionated visual styling (blockquotes, links, tables, etc.) – let themes
   handle it

#### 1.5.3

 * Fixed PHP 8.2 trait constants compatibility (Rector downgrade)

#### 1.5.2

 * Fixed PHP 8.0 downgrade for WordPress.org compatibility

#### 1.5.1

 * Fixed deployment: remove missing dev dependencies from distribution

#### 1.5.0

 * Added Torchlight Engine integration for advanced code block features
 * Added inline code annotations: highlight, focus, diff (+/-), and ranges
 * Added Code Annotations panel in block editor sidebar
 * Replaced highlight.js with server-side Torchlight/Phiki

#### 1.4.3

 * Fixed vertical spacing in highlighted code blocks

#### 1.4.2

 * Added code block line numbers and line highlighting syntax
 * Fixed legacy wp-djot/djot blocks editability in Gutenberg

#### 1.4.1

 * Fixed Table of Contents and heading permalinks appearing in post excerpts on 
   archive pages

#### 1.4.0

 * Added automatic Table of Contents generation from headings
 * Configurable TOC position (top/bottom), heading levels, and list type
 * Light and dark mode styling for TOC
 * Added heading permalinks with show-on-hover and copy-to-clipboard
 * Added locale-aware smart quotes (20 locales + Auto from site language)
 * Bumped php-collective/djot to ^0.1.13

#### 1.3.1

 * Fixed text domain to match plugin slug (djot-markup)
 * Properly escape HTML output with wp_kses_post/wp_kses
 * Fixed block wrapper attributes escaping for Plugin Check compliance
 * Excluded non-permitted files from distribution
 * Added build script for distribution zip
 * Added markmarkmark to Contributors list

#### 1.2.1

 * Renamed plugin to “Djot Markup” for WordPress.org compliance
 * Added ABSPATH checks to all PHP files for security
 * Prefixed global variables for WordPress coding standards compliance

#### 1.2.0

 * Changed code prefix from wp_djot/wp-djot to wpdjot for WordPress.org compliance
 * Updated highlight.js from v11.9.0 to v11.11.1
 * Added backward compatibility for existing blocks and settings
 * Added settings migration from old option name

#### 1.1.0

 * Comment formatting toolbar with buttons for Bold, Italic, Code, Link, Quote, 
   and Code Block
 * Write/Preview tabs for comment toolbar with live Djot preview
 * Syntax highlighting in comment preview
 * Excerpt filter to render Djot content on archive pages
 * Support for extracting Djot content from Gutenberg blocks for excerpts
 * Fixed archive pages to properly show excerpts with “Read more” links

#### 1.0.0

 * Initial release
 * Full Djot syntax support
 * Shortcode and content filtering
 * Admin settings page
 * Syntax highlighting with highlight.js
 * Safe mode for untrusted content
 * Template tags for theme developers

## Meta

 *  Versió **1.5.11**
 *  Darrera actualització **fa 1 setmana**
 *  Instal·lacions actives **Menys de 10**
 *  Versió del WordPress ** 6.0 o posterior **
 *  Provada fins a **6.9.4**
 *  Versió del PHP ** 8.2 o posterior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/djot-markup/)
 * Etiquetes
 * [code](https://ca.wordpress.org/plugins/tags/code/)[markdown](https://ca.wordpress.org/plugins/tags/markdown/)
   [markup](https://ca.wordpress.org/plugins/tags/markup/)[syntax highlighting](https://ca.wordpress.org/plugins/tags/syntax-highlighting/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/djot-markup/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

[Your review](https://wordpress.org/support/plugin/djot-markup/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/djot-markup/reviews/)

## Col·laboradors

 *   [ markmarkmark ](https://profiles.wordpress.org/markmarkmark/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/djot-markup/)