Releases: react-syntax-highlighter/react-syntax-highlighter
Releases · react-syntax-highlighter/react-syntax-highlighter
15.0.1
Just a minor update to regenerate local Prism themes that employed nested token styling:
darcula
shades-of-purple
synthwave84
vs
15.0.0
Changes
- #305 - Corrects a longstanding flaw in our token highlighting, allowing styling of nested tokens via CSS. Technically a breaking change for theme styling, though it fixes a feature that didn't actually work for themes prior to this anyway!
Props to @karlhorky for incredibly detailed and patient work on this.
14.0.2
14.0.0
Changes
See #309 for details.
TL;DR:
- New prop:
wrapLongLines
- New default prop value:
showInlineLineNumbers={true}
Yes that's a confusingly-named prop. We'll fix that soon
This could be a breaking change if you're using
showLineNumbers
and are expecting a separate<code>
element containing your line numbers. If you want to keep that behavior, you'll now need to explicitly passshowInlineLineNumbers={false}
- Thanks to the new
wrapLongLines
functionality, RSH applies explicit white-space styling on the<code>
tag.
This could be a breaking change if the inline style overrides a
white-space
property that you're supplying via external CSS.
13.5.3
13.5.2
13.5.1
13.5.0
Enhancements
- #299: clean up old files in project root, add jest to eslint
Grateful to @ktmud for stepping in with that improvement.
Dependency updates
- #300: Updated to
refractor
3.1.0, which brings inprismjs
1.21.0. We'd pinnedreact-syntax-highlighter 13.3.1
toprismjs 1.21.0
, but didn't realize thatrefractor
's dependency would keep us at 1.20.0
13.4.0
13.3.1
Updates
prism
updated to 1.21.0, with lots of improvements: CHANGELOG for prism 1.21.0- added Github repo link to the upper right corner of demo pages