PHPackages                             curder/commonmark-extensions - 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. curder/commonmark-extensions

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

curder/commonmark-extensions
============================

A collection of CommonMark extensions

v1.0.2(1y ago)052MITPHPPHP ^8.1

Since Nov 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/curder/commonmark-extensions)[ Packagist](https://packagist.org/packages/curder/commonmark-extensions)[ RSS](/packages/curder-commonmark-extensions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

CommonMark Extensions
=====================

[](#commonmark-extensions)

[![Tests](https://github.com/curder/commonmark-extensions/actions/workflows/run-tests.yml/badge.svg)](https://github.com/curder/commonmark-extensions/actions/workflows/run-tests.yml)[![Check & fix styling](https://github.com/curder/commonmark-extensions/actions/workflows/pint-fixer.yml/badge.svg)](https://github.com/curder/commonmark-extensions/actions/workflows/pint-fixer.yml)[![Latest Stable Version](https://camo.githubusercontent.com/afd563fe7bada110589327b9abbdba92265a253ca3dc4e9353034bbe82c214a3/687474703a2f2f706f7365722e707567782e6f72672f6375726465722f636f6d6d6f6e6d61726b2d657874656e73696f6e732f76)](https://packagist.org/packages/curder/commonmark-extensions)[![Total Downloads](https://camo.githubusercontent.com/b7dccf2fcae119c27bf06b3ed1fc43effa9149f9e944dbb5a211f4b65e91c26b/687474703a2f2f706f7365722e707567782e6f72672f6375726465722f636f6d6d6f6e6d61726b2d657874656e73696f6e732f646f776e6c6f616473)](https://packagist.org/packages/curder/commonmark-extensions)[![License](https://camo.githubusercontent.com/8a2a532215c653893824789c829a5d572b4fd569ccff0d28cf8169cabb3ef3b2/687474703a2f2f706f7365722e707567782e6f72672f6375726465722f636f6d6d6f6e6d61726b2d657874656e73696f6e732f6c6963656e7365)](https://packagist.org/packages/curder/commonmark-extensions)

一个用于 [league/commonmark](https://github.com/thephpleague/commonmark) 的扩展集合,提供了代码组、自定义容器和标题锚点等功能。

功能特性
----

[](#功能特性)

### 1. 代码组 (Code Groups)

[](#1-代码组-code-groups)

允许创建分组的代码块,支持多语言切换展示:

```
::: code-group
```php
