npm react-syntax-highlighter 14.0.0

latest releases: 15.6.1, 15.6.0, 15.5.0...
4 years ago

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 pass showInlineLineNumbers={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.

Don't miss a new react-syntax-highlighter release

NewReleases is sending notifications on new releases.