PHPackages                             denshoch/dendenmarkdown - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. denshoch/dendenmarkdown

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

denshoch/dendenmarkdown
=======================

Just a little help for them. This is a Markdown dialect optimized for EPUB 3.

1.5.1.1(1y ago)198382[1 issues](https://github.com/denshoch/DenDenMarkdown/issues)BSD-3-ClausePHPPHP ^7.4 || ^8.0 || ^8.3CI failing

Since Jul 24Pushed 1y ago2 watchersCompare

[ Source](https://github.com/denshoch/DenDenMarkdown)[ Packagist](https://packagist.org/packages/denshoch/dendenmarkdown)[ Docs](https://conv.denshochan.com/markdown)[ RSS](/packages/denshoch-dendenmarkdown/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (9)Versions (41)Used By (0)

DenDenMarkdown (でんでんマークダウン)
===========================

[](#dendenmarkdown-でんでんマークダウン)

by Densho Channel

[![](https://camo.githubusercontent.com/4766f293e5a8764510e3a6ba2169a02c54d84fac4507db048fdc41470f52a5f5/68747470733a2f2f6c68342e676f6f676c6575736572636f6e74656e742e636f6d2f2d6d336376755f674b7457382f5472617551476f5a6248492f41414141414141414a64632f7974496d4a346f344463552f733238382f73642d30372e706e67)](https://camo.githubusercontent.com/4766f293e5a8764510e3a6ba2169a02c54d84fac4507db048fdc41470f52a5f5/68747470733a2f2f6c68342e676f6f676c6575736572636f6e74656e742e636f6d2f2d6d336376755f674b7457382f5472617551476f5a6248492f41414141414141414a64632f7974496d4a346f344463552f733238382f73642d30372e706e67)
Illustration (c) JCN Inc. &amp; Garakuta.

based on:

PHP Markdown Lib by Michel Fortin

Markdown by John Gruber

Features
--------

[](#features)

This library is implementing some features that make writing EPUB content documents easier.

- GFM style line break
- Block titles(bridgehead) \[deprecated\]
- Global Language Support
    - Japanese Ruby Annotation
    - Tate-Chu-Yoko
- Twitter account autolink syntax
- Footnotes with epub:type attribute
- EPUB pagebreak syntax
- Chunk file syntax

Requirement
-----------

[](#requirement)

This library package requires PHP 5.5 or later.

Before PHP 5.5, pcre.backtrack\_limit defaults to 100 000, which is too small in many situations. You might need to set it to higher values. Later PHP releases defaults to 1 000 000, which is usually fine.

This library also requires [Composer](http://getcomposer.org/) to use dependent library PHP Markdown Extra. Before using this library, install Composer and execute `composer install`.

Usage
-----

[](#usage)

```
$parser = new Denshoch\DenDenMarkdown;
$parser->tarnsform('Hello wolrd!');
// => Hello wolrd!
```

### options

[](#options)

You can pass [Harusame](https://github.com/denshoch/harusame) options which automatically add special classes for Tate-Chu-Yoko and text orientation in vertical writing mode. It is disabled by default.

```
$options = array("autoTcyDigit" => 3, "autoTextOrientation" => true);
$parser = new Denshoch\DenDenMarkdown($options);
$parser.transform('10円玉と100円玉がある♡');
// => 10円玉と100円玉がある♡
```

keytypeinitaldescriptionautoTcyDigitinteger0max digits of number to add `.tcy` class.autoTextOrientationbooleanfalseAdd `.upright` and `.sideways` class or not.Syntax
------

[](#syntax)

Description of EPUB Markdown syntax is available on . Sorry, currently Japanese version only.

Thanks
------

[](#thanks)

- Thanks to Makoto Kitaichi for supporting.

Copyright and License
---------------------

[](#copyright-and-license)

DenDenMarkdown
Copyright (c) 2013 Densho Channel

All rights reserved.

based on:

PHP Markdown Lib Copyright (c) 2004-2013 Michel Fortin

All rights reserved.

Markdown
Copyright (c) 2003-2005 John Gruber All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name "Markdown" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~121 days

Recently: every ~10 days

Total

35

Last Release

583d ago

PHP version history (2 changes)1.4.9PHP ^7.4

1.5.0PHP ^7.4 || ^8.0 || ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5093936?v=4)[Densho Channel](/maintainers/denshoch)[@denshoch](https://github.com/denshoch)

---

Top Contributors

[![lostandfound](https://avatars.githubusercontent.com/u/596183?v=4)](https://github.com/lostandfound "lostandfound (138 commits)")[![takahashim](https://avatars.githubusercontent.com/u/10401?v=4)](https://github.com/takahashim "takahashim (2 commits)")

---

Tags

markdownjapaneseepubepub3

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/denshoch-dendenmarkdown/health.svg)

```
[![Health](https://phpackages.com/badges/denshoch-dendenmarkdown/health.svg)](https://phpackages.com/packages/denshoch-dendenmarkdown)
```

###  Alternatives

[vtalbot/markdown

Markdown compiler for Laravel 5

98223.6k3](/packages/vtalbot-markdown)[kartik-v/yii2-markdown

Advanced Markdown editing and conversion utilities for Yii Framework 2.0

88270.9k6](/packages/kartik-v-yii2-markdown)[maglnet/magl-markdown

Provides a ZF2 View Helper to render markdown syntax. It uses third-party libraries for the rendering and you can switch between different renderers.

22194.6k4](/packages/maglnet-magl-markdown)[joomlatools/pages

Joomlatools Pages is a very fast just-in-time page generator and flexible framework that makes building websites with any CMS, API, or database fun again. It can be installed in Joomla as a component, or be used standalone

473.7k](/packages/joomlatools-pages)[cartalyst/interpret

A driver-based content rendering package, with support for HTML, Markdown &amp; plain text. You can register custom drivers for custom content types.

1916.4k](/packages/cartalyst-interpret)[jeroen/mediawiki-github

Simple MediaWiki extension for embedding GitHub hosted content in wiki pages. Supports markdown rendering and syntax highlighting.

334.4k](/packages/jeroen-mediawiki-github)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
