php-collective/wp-djot 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-collective/wp-djot

最新稳定版本:1.1.5

Composer 安装命令:

composer require php-collective/wp-djot

包简介

WordPress plugin for Djot markup language support

README 文档

README

CI WordPress Plugin Version WordPress Plugin Downloads WordPress Plugin Rating License: MIT PHP 8.2+ WordPress 6.0+

A WordPress plugin for Djot markup language support. Convert Djot syntax to HTML in posts, pages, and comments.

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

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
  • Content Profiles: Configurable feature restrictions (full, article, comment, minimal)
  • Safe Mode: XSS protection for untrusted content
  • Syntax Highlighting: Built-in highlight.js integration with multiple themes
  • WP-CLI Migration: Migrate existing HTML/Markdown content to Djot

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
<?php
echo "Hello, World!";
```

Renders as:

Welcome to My Blog

This is emphasized and this is strong.

Here's a link to Djot and some inline code.

  • First item
  • Second item
  • Third item

A blockquote with some wisdom.

<?php
echo "Hello, World!";

Requirements

  • PHP 8.2 or higher
  • WordPress 6.0 or higher

Installation

From WordPress.org

Search for "Djot Markup" in the WordPress plugin directory, or visit: wordpress.org/plugins/djot-markup-for-wp

From GitHub

cd wp-content/plugins
git clone https://github.com/php-collective/wp-djot.git
cd wp-djot
composer install --no-dev

Documentation

For complete Djot syntax documentation, visit djot.net.

See Also

  • Djot - Official Djot website with syntax reference and playground
  • jgm/djot - Reference implementation in JavaScript by John MacFarlane
  • JetBrains IDE support - Plugin for PhpStorm, IntelliJ IDEA, WebStorm, etc.
  • Djot playground - Live demo to check out how this markup language works.

Credits

Changelog

See CHANGELOG.md for version history.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-30