Skip to content

Conversation

@ryangjchandler
Copy link
Collaborator

```php {2,4-8}{3}
// ...
\```

This is now supported out of the box in the CommonMark extension.

The first set of braces does highlighting. The second does focusing.

Highlighted lines get a highlight class added. Focused lines get a focus class.

You can pass a plain integer 2 or a range of integers 4-8, comma-separating each value.

@ryangjchandler ryangjchandler merged commit 57ae10e into 2.x Aug 25, 2025
5 checks passed
@ryangjchandler ryangjchandler deleted the markdown-meta-string-transformers branch August 25, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants