PHPackages                             php-collective/wp-djot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. php-collective/wp-djot

ActiveWordpress-plugin

php-collective/wp-djot
======================

WordPress plugin for Djot markup language support

1.5.11(1mo ago)001[1 issues](https://github.com/php-collective/wp-djot/issues)MITJavaScriptPHP &gt;=8.2CI passing

Since Nov 30Pushed 1mo agoCompare

[ Source](https://github.com/php-collective/wp-djot)[ Packagist](https://packagist.org/packages/php-collective/wp-djot)[ RSS](/packages/php-collective-wp-djot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (36)Used By (0)

Djot Markup for WordPress
=========================

[](#djot-markup-for-wordpress)

[![CI](https://github.com/php-collective/wp-djot/actions/workflows/ci.yml/badge.svg)](https://github.com/php-collective/wp-djot/actions/workflows/ci.yml)[![WordPress Plugin Version](https://camo.githubusercontent.com/2afcb880419f48aac4ddd8c973a42334da4d19323ff3b6e435760cbcceeaa9ba/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f762f646a6f742d6d61726b7570)](https://wordpress.org/plugins/djot-markup/)[![WordPress Plugin Downloads](https://camo.githubusercontent.com/c62874815921463017ca651230e8ff93a6705513ee09adf5280ed944ecd83a9d/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f64742f646a6f742d6d61726b7570)](https://wordpress.org/plugins/djot-markup/)[![WordPress Plugin Rating](https://camo.githubusercontent.com/eebb14a6a9564215de5ececdec8c3f176617e880ca8411ceb818b87619941f46/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f73746172732f646a6f742d6d61726b7570)](https://wordpress.org/plugins/djot-markup/)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP 8.2+](https://camo.githubusercontent.com/789befc8d88593153c7b6252f5256360c9532b26eb84fcb39b1ab842cc239e9d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d707572706c652e737667)](https://php.net)[![WordPress 6.0+](https://camo.githubusercontent.com/f1989d6cd7139e0ba03c225b1eb47980a7ec6ba2a2b489beb9c01881be322852/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d626c75652e737667)](https://wordpress.org)

A WordPress plugin for [Djot](https://djot.net/) markup language support. Convert Djot syntax to HTML in posts, pages, and comments.

What is Djot?
-------------

[](#what-is-djot)

Djot is a light markup syntax created by John MacFarlane (creator of CommonMark and Pandoc). It aims to be a successor to Markdown with cleaner syntax and more consistent parsing rules.

[![Watch the demo video](https://camo.githubusercontent.com/f17bec9d3370617ad875ae2ce8afd8c873d4cab4ac41ba62e6829661220994d9/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f7a304e736a7a7030676e772f6d7164656661756c742e6a7067)](https://www.youtube.com/watch?v=z0Nsjzp0gnw)

Features
--------

[](#features)

- **Full Djot Support**: Headings, emphasis, links, images, code blocks, tables, footnotes, and more
- **Block Editor Support**: Native Gutenberg block for writing Djot with live preview
- **Shortcode Support**: Use `[djot]...[/djot]` in your content
- **Table of Contents**: Automatic TOC generation from headings with configurable levels and position
- **Heading Permalinks**: Clickable `#` symbols on headings (show on hover, copy URL to clipboard)
- **Content Profiles**: Configurable feature restrictions (full, article, comment, minimal)
- **Safe Mode**: XSS protection for untrusted content
- **Syntax Highlighting**: Server-side highlighting with Torchlight Engine
- **Code Block Enhancements**: Line numbers and line highlighting (VitePress-style syntax)
- **WP-CLI Migration**: Migrate existing HTML/Markdown content to Djot

Example
-------

[](#example)

```
# Welcome to My Blog

This is _emphasized_ and this is *strong*.

Here's a [link to Djot](https://djot.net/) and some `inline code`.

- First item
- Second item
- Third item

> A blockquote with some wisdom.

And a code block:

``` php
