Skip to content

Release 0.3.0

Compare
Choose a tag to compare
@FIameCaster FIameCaster released this 25 Aug 20:20
· 366 commits to main since this release
a21ba9d

New bracket matcher:

The old bracket matcher has been replaced with a faster and smaller one. Rainbow brackets are now optional and highlighting the closest bracket pair is handled by a separate extension.

import { bracketMatcher } from "prism-code-editor/match-brackets"
import { highlightBracketPairs } from "prism-code-editor/highlight-brackets"

I would've preferred to have highlightBracketPairs in the same package, but tree-shaking didn't work as expected when I did.

The old bracket matcher is kept for backwards compatibility, but is marked as deprecated and will be removed in the future.