---
title: "League CommonMark: extension config fix in PHP | VulCode"
description: "A fix to League CommonMark in PHP: InlinesOnlyExtension accepts the unordered_list_markers option instead of throwing a ValidationException on valid config."
url: "https://vulcode.com/en/opensource/contributions/league-commonmark"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

thephpleague/commonmark

# League CommonMark

An extensible PHP Markdown parser that fully supports the CommonMark and GitHub Flavored Markdown specs.

[See the repository](https://github.com/thephpleague/commonmark) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: PHP
- **GitHub stars**: 2,981
- **Merged changes**: 1
- **Project site**: [commonmark.thephpleague.com](https://commonmark.thephpleague.com)

## What we changed

InlinesOnlyExtension accepts the unordered_list_markers option instead of rejecting a valid configuration with a validation error.

### What this work shows

- Config schemas with Nette Schema

- A Markdown parser's extension system

- PHPUnit functional tests

What was broken

### A valid option ended in an exception

The unordered_list_markers option belongs to the shared commonmark config namespace. InlinesOnlyExtension registered a schema for that namespace without it, so setting the option threw a ValidationException saying Unexpected item.

How we fixed it

### The option declared in the extension's schema

InlinesOnlyExtension declares unordered_list_markers with the same definition as CommonMarkCoreExtension. Rendering is unchanged, since this extension renders no lists, and a test checks that the option is accepted and *foo* still gives <em>foo</em>.

[#1151](https://github.com/thephpleague/commonmark/pull/1151)

## Merged change 1

- [#1151 fix: accept unordered_list_markers config in InlinesOnlyExtension Merged 7 September 2026](https://github.com/thephpleague/commonmark/pull/1151)

## What it taught us

When two extensions register a schema for the same config namespace, each has to know all its options, or switching extensions breaks a working configuration. We can spot such gaps in Nette schemas and cover them with a test.

[More about this technology: PHP](https://vulcode.com/en/technologies/php)

## Other projects we write code for

- [**Composer** PHP · 29,590 stars The dependency manager for PHP: it installs and updates a project's libraries from its composer.json.](https://vulcode.com/en/opensource/contributions/composer)

- [**PHPMailer** PHP · 22,347 stars The classic PHP library for sending email, used by WordPress and many other systems.](https://vulcode.com/en/opensource/contributions/phpmailer)

- [**Monolog** PHP · 21,407 stars A PHP logging library that sends records to files, sockets, inboxes, databases and web services. Symfony and Laravel use it, among others.](https://vulcode.com/en/opensource/contributions/monolog)

- [**Carbon** PHP · 16,583 stars A PHP DateTime extension for working with dates, standard in the Laravel ecosystem.](https://vulcode.com/en/opensource/contributions/carbon)

- [**Whoops** PHP · 13,231 stars A PHP library that turns uncaught exceptions into a readable error page with the stack trace, known from Laravel.](https://vulcode.com/en/opensource/contributions/whoops)

- [**ramsey/uuid** PHP · 12,642 stars A PHP library for generating universally unique identifiers (UUIDs).](https://vulcode.com/en/opensource/contributions/ramsey-uuid)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
