[d24f17c] | 1 | # Changelog
|
---|
| 2 |
|
---|
| 3 | ## 15.4.3 / 2020-12-07
|
---|
| 4 | - Fixed `highlight` version regression
|
---|
| 5 |
|
---|
| 6 | ## 15.4.2 / 2020-12-07
|
---|
| 7 | - Updated `lowlight` to 1.17.0 to match `highlight` dependency version
|
---|
| 8 |
|
---|
| 9 | ## 15.4.1 / 2020-12-07
|
---|
| 10 | - Bugfix: increased minwidth to avoid unequal line number widths
|
---|
| 11 | - Bugfix: prevent last line of file from rendering an unwanted line number
|
---|
| 12 |
|
---|
| 13 | ## 15.4.0 / 2020-12-07
|
---|
| 14 | - Security fix: updated highlight.js to 10.4.1
|
---|
| 15 |
|
---|
| 16 | ## 15.3.1 / 2020-11-24
|
---|
| 17 | - Bugfix: styling correctly applied to interpolation punctuation
|
---|
| 18 |
|
---|
| 19 | ## 15.3.0 / 2020-10-29
|
---|
| 20 | - Updated prismjs (1.22.0) and refractor (3.2.0)
|
---|
| 21 | - Updated prism-themes (1.5.0)
|
---|
| 22 | - Fixed a broken readme link
|
---|
| 23 |
|
---|
| 24 | ## 15.2.1 / 2020-10-08
|
---|
| 25 | - Bugfix: use string templating in language-specific theming code
|
---|
| 26 |
|
---|
| 27 | ## 15.2.0 / 2020-10-07
|
---|
| 28 | - Allow language-specific theme styles to override default theme styles
|
---|
| 29 |
|
---|
| 30 | ## 15.1.0 / 2020-10-05
|
---|
| 31 | - Updated to `prism-themes` 1.4.1
|
---|
| 32 |
|
---|
| 33 | ## 15.0.1 / 2020-10-03
|
---|
| 34 | - Regenerate Prism themes containing nested tokens
|
---|
| 35 |
|
---|
| 36 | ## 15.0.0 / 2020-10-03
|
---|
| 37 | - Breaking change: Allow styling nested tokens with classes in styles (probably not practically breaking for most, since this is a change that fixes a previously non-working feature)
|
---|
| 38 |
|
---|
| 39 | ## 14.0.2 / 2020-10-03
|
---|
| 40 | - updated test snapshots after 14.0.1 fix
|
---|
| 41 | - added tests for line number rendering behavior
|
---|
| 42 |
|
---|
| 43 | ## 14.0.1 / 2020-10-03
|
---|
| 44 | - Bugfix: Show line numbers only when `showLineNumbers == true`
|
---|
| 45 |
|
---|
| 46 | ## 14.0.0 / 2020-10-01
|
---|
| 47 | - New prop: `wrapLongLines`, which removes the need to manually add `white-space: pre` styling
|
---|
| 48 | - New default prop value: `showInlineLineNumbers = true`: when `showLineNumbers` is `true`, we now default to inline line numbers instead of putting them in a separate `<code>` block
|
---|
| 49 | - Explicit white-space styling on `<code>` tag (will be set to either `white-space: pre` or `white-space: pre-wrap` depending on value of `wrapLongLines` prop)
|
---|
| 50 |
|
---|
| 51 | ## 13.5.3 / 2020-09-03
|
---|
| 52 | - don't forget to add current version to CHANGELOG at release time :)
|
---|
| 53 |
|
---|
| 54 | ## 13.5.2 / 2020-09-03
|
---|
| 55 | - filled in CHANGELOG for v10.x through v13.5.1
|
---|
| 56 |
|
---|
| 57 | ## 13.5.1 / 2020-08-19
|
---|
| 58 | - Brought back `createElement` that went missing as of version 13.5.
|
---|
| 59 |
|
---|
| 60 | ```js
|
---|
| 61 | import createElement from "react-syntax-highlighter/create-element";
|
---|
| 62 | ```
|
---|
| 63 |
|
---|
| 64 | ## 13.5.0 / 2020-08-17
|
---|
| 65 | - Cleaned up old files in project root, add jest to eslint
|
---|
| 66 | - Updated to `refractor` 3.1.0, which brings in `prismjs` 1.21.0. We'd pinned `react-syntax-highlighter 13.3.1` to `prismjs 1.21.0`, but didn't realize that `refractor`'s dependency would keep us at 1.20.0
|
---|
| 67 |
|
---|
| 68 | ## 13.4.0 / 2020-08-14
|
---|
| 69 | - added ESLint (https://github.com/react-syntax-highlighter/react-syntax-highlighter/pull/298)
|
---|
| 70 | - added favicon to demo (https://github.com/react-syntax-highlighter/react-syntax-highlighter/pull/295)
|
---|
| 71 | - new addition to the "built with" list (https://github.com/react-syntax-highlighter/react-syntax-highlighter/pull/293)
|
---|
| 72 |
|
---|
| 73 | ### Bugfixes
|
---|
| 74 | - JS error when using lineNumberStyle() for inline line numbers
|
---|
| 75 | - incorrect 'hljs' className applied to `<pre>` when using Prism
|
---|
| 76 |
|
---|
| 77 | ## 13.3.1 / 2020-08-08
|
---|
| 78 | - `prism` updated to 1.21.0, with lots of improvements: [CHANGELOG for prism 1.21.0](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md#1210-2020-08-06)
|
---|
| 79 | - added Github repo link to the upper right corner of demo pages
|
---|
| 80 |
|
---|
| 81 | ### Bugfixes
|
---|
| 82 | - Truncated Prism `shell-session` language command output
|
---|
| 83 | - Incorrect syntax highlighting for mutli-line comments
|
---|
| 84 | - Unexpected behavior with `useInlineStyles={false}`
|
---|
| 85 |
|
---|
| 86 | ## 13.2.1 / 2020-07-30
|
---|
| 87 | ### Bugfixes
|
---|
| 88 | - Neglected to include rebuilt "Prism async light" demo files in 13.2.0 release
|
---|
| 89 |
|
---|
| 90 | ## 13.2.0 / 2020-07-30
|
---|
| 91 | - Updated our `prism-themes` dependency to pull in new themes, including `vsc-dark-plus`
|
---|
| 92 | - [Prism async demo](https://react-syntax-highlighter.github.io/react-syntax-highlighter/demo/prism-async-light.html) now dynamically loads autogenerated Prism themes list (EDIT: neglected to include built demo files, fixed in 13.2.1)
|
---|
| 93 |
|
---|
| 94 | ### New Prism themes available
|
---|
| 95 |
|
---|
| 96 | - `a11yDark`
|
---|
| 97 | - `dracula`
|
---|
| 98 | - `materialDark`
|
---|
| 99 | - `materialLight`
|
---|
| 100 | - `materialOceanic`
|
---|
| 101 | - `nord`
|
---|
| 102 | - `shadesOfPurple`
|
---|
| 103 | - `synthwave84`
|
---|
| 104 | - `vscDarkPlus`
|
---|
| 105 |
|
---|
| 106 | ## 13.1.1 / 2020-07-30
|
---|
| 107 | - Repaired demo builds for compatibility with Github Pages
|
---|
| 108 | - Moved build-generated demo files to their own subdirectory inside /demo
|
---|
| 109 | - updated repo URLs (we've migrated from `conorhastings/react-syntax-highlighter` to `react-syntax-highlighter/react-syntax-highlighter`)
|
---|
| 110 | - corrected a link to the `refractor` repo
|
---|
| 111 |
|
---|
| 112 | ## 13.1.0 / 2020-07-23
|
---|
| 113 |
|
---|
| 114 | Demo updates:
|
---|
| 115 | - indicate that Highlight powers the default demo
|
---|
| 116 | - restored Prism demo that went missing in 13.0.0
|
---|
| 117 | - autogenerate demo-specific style lists (and add a comment to autogenerated files pointing out that they're autogenerated)
|
---|
| 118 | - demos now autoload full lists of languages and styles from highlight/prism
|
---|
| 119 | - minor UI adjustments
|
---|
| 120 |
|
---|
| 121 | ## 13.0.0 / 2020-07-23
|
---|
| 122 | - latest `highlight ^10.1.1` and `lowlight ^1.14.0` dependencies
|
---|
| 123 | - latest `refractor ^3.0.0` and `prism ^1.20.0` dependencies
|
---|
| 124 | - updated codecov and lodash deps
|
---|
| 125 | - corrected .gitignore
|
---|
| 126 | - updated/fixed tests
|
---|
| 127 | - new Demos UI
|
---|
| 128 | - CircleCi v2 config added
|
---|
| 129 | - exposed `createElement()` in public API
|
---|
| 130 | - change FUNDING platform from `liberapay` to `github`
|
---|
| 131 | - added projects to "built with" section of README
|
---|
| 132 | - updated `websocket-extensions` to 0.1.4
|
---|
| 133 |
|
---|
| 134 | ### New prop: `showInlineLineNumbers`
|
---|
| 135 |
|
---|
| 136 | ```jsx
|
---|
| 137 | <SyntaxHighlighter
|
---|
| 138 | showLineNumbers={true} // required to show line numbers, whether inline or not
|
---|
| 139 | showInlineLineNumbers={true} // render them inside wrapped lines, instead of as a separate <code> block
|
---|
| 140 | renderer={virtualizedRenderer({
|
---|
| 141 | rowHeight: 20
|
---|
| 142 | })}
|
---|
| 143 | >
|
---|
| 144 | {code}
|
---|
| 145 | </SyntaxHighlighter>
|
---|
| 146 | ```
|
---|
| 147 |
|
---|
| 148 | When paired with `showLineNumbers={true}`, `showInlineLineNumbers={true}` injects line numbers into each wrapped line of code, instead of creating a separate `<code></code>` block for the numbers. This allows line numbering to work with virtualized renderers such as `react-syntax-highlighter-virtualized-renderer`.
|
---|
| 149 |
|
---|
| 150 | Inline line numbers are styled so that they're not selected when drag-selecting multiple lines of highlighted text, preserving expected behavior.
|
---|
| 151 |
|
---|
| 152 | ### Breaking changes
|
---|
| 153 | Highlight v10 introduced some breaking changes for us here which we've worked around (mainly that `getLanguage` was no longer exposed), but this shouldn't cause breakage for most people relying on `react-syntax-highlighter` and not consuming `highlight.js` directly.
|
---|
| 154 |
|
---|
| 155 | #### Theme rename
|
---|
| 156 |
|
---|
| 157 | - If you rely on the `darkula` theme from `highlight.js`, highlight v10 has renamed that style to `darcula`.
|
---|
| 158 |
|
---|
| 159 | #### Renamed/removed highlight.js languages
|
---|
| 160 | - `cs` (renamed to `csharp`)
|
---|
| 161 | - `nimrod` (renamed to `nim`)
|
---|
| 162 | - `tex` (removed)
|
---|
| 163 |
|
---|
| 164 | ### New languages
|
---|
| 165 |
|
---|
| 166 | > Note: `react-syntax-highlighter` provides an automated build wrapper around styles and languages provided by `highlight.js` (via `lowlight`) and `prism` (via `refractor`). Changes here are simply describing what's changed in those libraries. If you'd like to see another language or style added, please contribute to those libraries.
|
---|
| 167 |
|
---|
| 168 | #### New highlight.js languages
|
---|
| 169 | - `cLike` (`c-like`)
|
---|
| 170 | - `c`
|
---|
| 171 | - `latex`
|
---|
| 172 | - `phpTemplate` (`php-template`)
|
---|
| 173 | - `pythonRepl` (`python-repl`)
|
---|
| 174 |
|
---|
| 175 | #### New prism.js languages
|
---|
| 176 | - `abnf`
|
---|
| 177 | - `antlr4`
|
---|
| 178 | - `aql`
|
---|
| 179 | - `bbcode`
|
---|
| 180 | - `bnf`
|
---|
| 181 | - `brightscript`
|
---|
| 182 | - `cil`
|
---|
| 183 | - `cmake`
|
---|
| 184 | - `concurnas`
|
---|
| 185 | - `dax`
|
---|
| 186 | - `dnsZoneFile` (`dns-zone-file`)
|
---|
| 187 | - `ebnf`
|
---|
| 188 | - `ejs`
|
---|
| 189 | - `etlua`
|
---|
| 190 | - `excelFormula` (`excel-formula`)
|
---|
| 191 | - `factor`
|
---|
| 192 | - `firestoreSecurityRules` (`firestore-security-rules`)
|
---|
| 193 | - `ftl`
|
---|
| 194 | - `gcode`
|
---|
| 195 | - `gdscript`
|
---|
| 196 | - `gml`
|
---|
| 197 | - `hcl`
|
---|
| 198 | - `javadoc`
|
---|
| 199 | - `javadoclike`
|
---|
| 200 | - `javastacktrace`
|
---|
| 201 | - `jq`
|
---|
| 202 | - `jsExtras` (`js-extras`)
|
---|
| 203 | - `jsTemplates` (`js-templates`)
|
---|
| 204 | - `jsdoc`
|
---|
| 205 | - `json5`
|
---|
| 206 | - `jsonp`
|
---|
| 207 | - `latte`
|
---|
| 208 | - `lilypond`
|
---|
| 209 | - `llvm`
|
---|
| 210 | - `moonscript`
|
---|
| 211 | - `n1ql`
|
---|
| 212 | - `nand2tetrisHdl` (`nand2tetris-hdl`)
|
---|
| 213 | - `neon`
|
---|
| 214 | - `pascaligo`
|
---|
| 215 | - `pcaxis`
|
---|
| 216 | - `phpdoc`
|
---|
| 217 | - `powerquery`
|
---|
| 218 | - `qml`
|
---|
| 219 | - `regex`
|
---|
| 220 | - `robotframework`
|
---|
| 221 | - `shellSession` (`shell-session`)
|
---|
| 222 | - `solidity`
|
---|
| 223 | - `solutionFile` (`solution-file`)
|
---|
| 224 | - `sparql`
|
---|
| 225 | - `splunkSpl` (`splunk-spl`)
|
---|
| 226 | - `sqf`
|
---|
| 227 | - `t4Cs` (`t4-cs`)
|
---|
| 228 | - `t4Templating` (`t4-templating`)
|
---|
| 229 | - `t4Vb` (`t4-vb`)
|
---|
| 230 | - `toml`
|
---|
| 231 | - `turtle`
|
---|
| 232 | - `vala`
|
---|
| 233 | - `zig`
|
---|
| 234 |
|
---|
| 235 |
|
---|
| 236 | ## 12.0.2 / 2019-12-15
|
---|
| 237 | - version bump, no other changes
|
---|
| 238 |
|
---|
| 239 | ## 12.0.1 / 2019-12-15
|
---|
| 240 | - version bump, no other changes
|
---|
| 241 |
|
---|
| 242 | ## 12.0.0 / 2019-12-15
|
---|
| 243 | - added projects to README
|
---|
| 244 | - updated Docker config: removed `/sbin/init` command
|
---|
| 245 | - introduced Github Actions config
|
---|
| 246 | - removed CircleCI config
|
---|
| 247 | - updated `mixin-deep` and `handlebars` dependencies
|
---|
| 248 | - updated "removed" code in diff demo
|
---|
| 249 |
|
---|
| 250 | ## 11.0.2 / 2019-07-13
|
---|
| 251 | - updated `style` prop description in README
|
---|
| 252 | - updated demo URL from `conor.rodeo` to `conorhastings.github.io`
|
---|
| 253 | - updated `lodash` dep from 4.17.11 to 4.17.14
|
---|
| 254 |
|
---|
| 255 | ## 11.0.1 / 2019-06-27
|
---|
| 256 | - version bump, no other changes
|
---|
| 257 |
|
---|
| 258 | ## 11.0.0 / 2019-06-27
|
---|
| 259 | - version bump, no other changes
|
---|
| 260 |
|
---|
| 261 | ## 10.3.3 / 2019-06-27
|
---|
| 262 | - build to update `async-languages` for highlight, picking up new languages added in 10.3.0
|
---|
| 263 |
|
---|
| 264 | > Historical note: `vs-dark` theme was automatically removed from `AVAILABLE_STYLES_PRISM.MD` in build process here
|
---|
| 265 |
|
---|
| 266 | ## 10.3.2 / 2019-06-27
|
---|
| 267 | - version bump
|
---|
| 268 |
|
---|
| 269 | ## 10.3.1 / 2019-06-27
|
---|
| 270 | - minor code change to diff demo
|
---|
| 271 | - added FUNDING.yml
|
---|
| 272 | - minor README updates
|
---|
| 273 |
|
---|
| 274 | ## 10.3.0 / 2019-05-22
|
---|
| 275 | - added projects to "built with" section of README
|
---|
| 276 | - corrected README typos
|
---|
| 277 |
|
---|
| 278 | ### New highlight.js languages
|
---|
| 279 | - `angelscript`
|
---|
| 280 | - `arcade`
|
---|
| 281 | - `gml`
|
---|
| 282 | - `isbl`
|
---|
| 283 | - `pgsql`
|
---|
| 284 | - `plaintext`
|
---|
| 285 | - `properties`
|
---|
| 286 | - `reasonml`
|
---|
| 287 | - `sas`
|
---|
| 288 |
|
---|
| 289 | ### New prism.js styles
|
---|
| 290 | - `xonokai`
|
---|
| 291 | - `vs-dark`
|
---|
| 292 |
|
---|
| 293 |
|
---|
| 294 | ## 10.2.1 / 2019-03-21
|
---|
| 295 | - fixed `classNames` concatenation in `createElement`
|
---|
| 296 | - updated test snapshots accordingly
|
---|
| 297 |
|
---|
| 298 | ## 10.2.0 / 2019-03-10
|
---|
| 299 | - updated license copyright date
|
---|
| 300 | - updated `highlight` from 9.12.0 to 9.13.0
|
---|
| 301 | - updated `lowlight` from 1.9.1 to 1.11.0
|
---|
| 302 |
|
---|
| 303 | ### New highlight.js styles available
|
---|
| 304 | - `a11yDark`
|
---|
| 305 | - `a11yLight`
|
---|
| 306 | - `anOldHope`
|
---|
| 307 | - `atomOneDarkReasonable`
|
---|
| 308 | - `gml`
|
---|
| 309 | - `isblEditorDark`
|
---|
| 310 | - `isblEditorLight`
|
---|
| 311 | - `lightfair`
|
---|
| 312 | - `nord`
|
---|
| 313 | - `shadesOfPurple`
|
---|
| 314 |
|
---|
| 315 | ## 10.1.3 / 2019-02-16
|
---|
| 316 | - README corrections
|
---|
| 317 | - updated deps: `@babel/runtime`, `babel-jest`, `codecov`, `jest`, `request`, `webpack-dev-server`
|
---|
| 318 | - updated import paths in demos
|
---|
| 319 |
|
---|
| 320 | ## 10.1.2 / 2018-12-06
|
---|
| 321 | - fine-tuned `prettier` config
|
---|
| 322 | - prettier cleanup of src and demo code
|
---|
| 323 | - use `@babel/runtime` instead of `babel-runtime`
|
---|
| 324 |
|
---|
| 325 | ## 10.0.1 / 2018-11-09
|
---|
| 326 | - All highlighters except for the old "-light" varieties now have a `supportedLanguages` field which can be used to determine the supported languages
|
---|
| 327 |
|
---|
| 328 | ## 10.0.0 / 2018-10-30
|
---|
| 329 | - `registerLanguage` is now a static method of the default export of highlighters that require registering of languages.
|
---|
| 330 | - `prism-async-light` & `light-async` now ship with their own language loaders
|
---|
| 331 | - Added `esm` & `cjs` outputs. Importing should now be done through import OR the import should point into the dist directory.
|
---|
| 332 | ```
|
---|
| 333 | import SyntaxHighlighter from "react-syntax-highlighter/prism";
|
---|
| 334 |
|
---|
| 335 | // Becomes:
|
---|
| 336 | import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
---|
| 337 |
|
---|
| 338 | // OR (less ideally)
|
---|
| 339 | import { Prism as SyntaxHighlighter } from "react-syntax-highlighter/dist/cjs/prism";
|
---|
| 340 | // OR
|
---|
| 341 | import { Prism as SyntaxHighlighter } from "react-syntax-highlighter/dist/esm/prism";
|
---|
| 342 | ```
|
---|
| 343 | - styles have moved into the `dist` directory. Update your imports from:
|
---|
| 344 |
|
---|
| 345 | ```
|
---|
| 346 | import style from 'react-syntax-highlighter/styles/prism'
|
---|
| 347 | ```
|
---|
| 348 |
|
---|
| 349 | to:
|
---|
| 350 |
|
---|
| 351 | ```
|
---|
| 352 | import style from 'react-syntax-highlighter/dist/styles/prism'
|
---|
| 353 | ```
|
---|
| 354 |
|
---|
| 355 | ## 9.0.1 / 2018-10-22
|
---|
| 356 | - fixed code-splitting in webpack 3.
|
---|
| 357 |
|
---|
| 358 | ## 9.0.0 / 2018-10-07
|
---|
| 359 | - Added async loaded versions of prism & highlight
|
---|
| 360 |
|
---|
| 361 |
|
---|
| 362 | ## 8.0.1 / 2018-07-05
|
---|
| 363 | - properly propagate `className` argument to `createLineElement` when `wrapLines=true`
|
---|
| 364 |
|
---|
| 365 | ## 8.0.0 / 2018-07-03
|
---|
| 366 | - pass along classNames that are not part of stylesheet (this allows passing in `className` in `lineProps`)
|
---|
| 367 |
|
---|
| 368 | ## 7.0.4 / 2018-05-02
|
---|
| 369 | - update `refractor` version
|
---|
| 370 |
|
---|
| 371 | ## 7.0.3 / 2018-05-02
|
---|
| 372 | - updated `.npmignore` to make it include less unneccsary files.
|
---|
| 373 | - update example in README to show proper path for require styles
|
---|
| 374 |
|
---|
| 375 | ## 7.0.2 / 2018-01-25
|
---|
| 376 | - handle fs errors in language and stylesheet build scripts
|
---|
| 377 | - fix link to `refractor` in README
|
---|
| 378 |
|
---|
| 379 | ## 7.0.1 / 2018-01-25
|
---|
| 380 | - removed claims of sanity from README
|
---|
| 381 |
|
---|
| 382 | ## 7.0.0 / 2018-01-25
|
---|
| 383 | - add lineProps prop which takes either an object or a function that returns an object that is then passed onto each line created when wrapLines=true
|
---|
| 384 | - removed lineStyle prop the behavior of this prop can be replicated with lineProps passing a style object inside the props object. this is a breaking change
|
---|
| 385 |
|
---|
| 386 | ## 6.1.2 / 2018-01-17
|
---|
| 387 | - add `.babelrc` to `.npmignore` for parcel support
|
---|
| 388 |
|
---|
| 389 | ## 6.1.1 / 2017-12-09
|
---|
| 390 | - move `prism-themes` to dev dependencies
|
---|
| 391 |
|
---|
| 392 | ## 6.1.0 / 2017-12-09
|
---|
| 393 | - added light version support for prism (refractor) based highlighting
|
---|
| 394 |
|
---|
| 395 | ## 6.0.4 / 2017-11-22
|
---|
| 396 | - fixed vendor prefixing for prism styles
|
---|
| 397 |
|
---|
| 398 | ## 6.0.3 / 2017-11-17
|
---|
| 399 | - add links to available languages in README (by @adamweeks)
|
---|
| 400 | - fix line number display for prism highlighter
|
---|
| 401 |
|
---|
| 402 | ## 6.0.2 / 2017-11-16
|
---|
| 403 | - fix git links in package.json
|
---|
| 404 |
|
---|
| 405 | ## 6.0.1 / 2017-11-16
|
---|
| 406 | - update package main to be root instead of dist
|
---|
| 407 |
|
---|
| 408 | ## 6.0.0 / 2017-11-16
|
---|
| 409 | - add support for alternative syntax highlighting using ast generated from prismjs via <a href="https://github.com/wooorm/refractor">refractor</a> (by @conorhastings and @maxmcd)
|
---|
| 410 |
|
---|
| 411 | ## 5.8.1 / 2017-10-26
|
---|
| 412 | - avoid unneeded function calls if language is text
|
---|
| 413 | - note text language in readme
|
---|
| 414 |
|
---|
| 415 | ## 5.8.0 / 2017-10-26
|
---|
| 416 | - avoid unneeded function calls if language is text
|
---|
| 417 | - note text language in readme
|
---|
| 418 |
|
---|
| 419 | ## 5.8.0 / 2017-10-25
|
---|
| 420 | - add support for text as valid language
|
---|
| 421 |
|
---|
| 422 | ## 5.7.1 / 2017-10-26
|
---|
| 423 | - check if children is array and use children[0] if so.
|
---|
| 424 |
|
---|
| 425 | ## 5.7.0 / 2017-08-21
|
---|
| 426 | - check if we have language before attempting to highlight.
|
---|
| 427 | - add test for unknown language to avoid further issues with content not rendering
|
---|
| 428 |
|
---|
| 429 |
|
---|
| 430 | ## 5.6.3 / 2017-08-12
|
---|
| 431 | - added code of conduct
|
---|
| 432 | - update dependency versions
|
---|
| 433 |
|
---|
| 434 | ## 5.6.2 / 2017-05-29
|
---|
| 435 | - fix edge cases in line wrapping feature
|
---|
| 436 |
|
---|
| 437 | ## 5.6.0 / 2017-05-11
|
---|
| 438 | - add list of available languages (by @forresto)
|
---|
| 439 |
|
---|
| 440 | ## 5.5.2 / 2017-05-07
|
---|
| 441 | - render plain string if no language present
|
---|
| 442 |
|
---|
| 443 | ## 5.5.1 / 2017-05-05
|
---|
| 444 | - add license file
|
---|
| 445 | - update readme
|
---|
| 446 |
|
---|
| 447 | ## 5.50 / 2017-04-23
|
---|
| 448 | - added test for useInlineStyles=false
|
---|
| 449 | - export previously unexported functions from createElemeent
|
---|
| 450 |
|
---|
| 451 | ## 5.4.1 / 2017-04-23
|
---|
| 452 | - add code coverage
|
---|
| 453 |
|
---|
| 454 | ## 5.4.0 / 2017-04-23
|
---|
| 455 | - add code coverage
|
---|
| 456 |
|
---|
| 457 |
|
---|
| 458 | ## 5.2.0 / 2017-04-08
|
---|
| 459 | - flatten tree before using wrapLines function
|
---|
| 460 | - allow using a custom renderer without wrapLines
|
---|
| 461 |
|
---|
| 462 | ## 5.1.3 / 2017-04-02
|
---|
| 463 | - flatten tree before using wrapLines function
|
---|
| 464 | - allow using a custom renderer without wrapLines
|
---|
| 465 | - update broken links in demo
|
---|
| 466 | - handle some edge cases in wrapLines function
|
---|
| 467 | - generalize function for finding text child
|
---|
| 468 |
|
---|
| 469 |
|
---|
| 470 | ## 5.1.2 / 2017-03-21
|
---|
| 471 | - update version of react-syntax-highlighter-virtualized-renderer for demo
|
---|
| 472 | - handle some edge cases in wrapLines function
|
---|
| 473 |
|
---|
| 474 | ## 5.1.1 / 2017-03-21
|
---|
| 475 | - add api to allow for use of custom renderer (virtualized, native, etc...)
|
---|
| 476 |
|
---|
| 477 | ## 5.1.0 / 2017-03-21
|
---|
| 478 | - add api to allow for use of custom renderer (virtualized, native, etc...)
|
---|
| 479 |
|
---|
| 480 | ## 5.0.0 / 2017-02-12
|
---|
| 481 | - allow wrapping of individual element in <span> tag
|
---|
| 482 |
|
---|
| 483 | ## 4.0.1 / 2016-12-09
|
---|
| 484 | - allow styling individual numbers
|
---|
| 485 |
|
---|
| 486 | ## 3.0.2 / 2016-12-04
|
---|
| 487 | - add support for IE and older android browsers (by @yahiousun)
|
---|
| 488 |
|
---|
| 489 | ## 3.0.1 / 2016-12-03
|
---|
| 490 | - update dependencies
|
---|
| 491 |
|
---|
| 492 | ## 3.0.0 / 2016-10-29
|
---|
| 493 | - wrap individual line numbers in span
|
---|
| 494 | - removed envified light build in favor of only using seperate entry point
|
---|
| 495 |
|
---|
| 496 | ## 2.11.0 / 2016-10-27
|
---|
| 497 | - export lowlight registerLanguage in light build
|
---|
| 498 |
|
---|
| 499 | ## 2.10.0 / 2016-10-09
|
---|
| 500 | - add section to readme showcasing projects built with react syntax highlighter
|
---|
| 501 | - fix style assignment function to not end up with unexpected styles
|
---|
| 502 |
|
---|
| 503 |
|
---|
| 504 | ## 2.9.0 / 2016-10-06
|
---|
| 505 | - call highlightAuto if no language provided
|
---|
| 506 | - unify quote style in code
|
---|
| 507 |
|
---|
| 508 | ## 2.8.0 / 2016-10-02
|
---|
| 509 | - add support for line numbers
|
---|
| 510 |
|
---|
| 511 |
|
---|
| 512 | ## 2.7.1 / 2016-10-02
|
---|
| 513 | - fix require of default style
|
---|
| 514 |
|
---|
| 515 | ## 2.7.0 / 2016-09-24
|
---|
| 516 | - add jest snapshot testing
|
---|
| 517 | - add more available styles
|
---|
| 518 |
|
---|
| 519 | ## 2.6.1 / 2016-09-22
|
---|
| 520 | - add new info on light build to readme
|
---|
| 521 | - don't wrap text in spans
|
---|
| 522 |
|
---|
| 523 | ## 2.6.0 / 2016-09-16
|
---|
| 524 | - add a seperate entry point for light build (by @bmathews)
|
---|
| 525 |
|
---|
| 526 | ## 2.5.0 / 2016-09-15
|
---|
| 527 | - add codeTagProps to props to allow passing arbitrary orios to code tag
|
---|
| 528 |
|
---|
| 529 | ## 2.4.0 / 2016-09-11
|
---|
| 530 | - allow optionally applying css classNames instead of inline styles
|
---|
| 531 | - fix light build example
|
---|
| 532 |
|
---|
| 533 | ## 2.3.0 / 2016-08-27
|
---|
| 534 | - add customStyle prop
|
---|
| 535 | - update available styles
|
---|
| 536 |
|
---|
| 537 |
|
---|
| 538 | ## 2.2.0 / 2016-08-27
|
---|
| 539 | - allow light build via env variable
|
---|
| 540 |
|
---|
| 541 | ## 2.1.1 / 2016-07-02
|
---|
| 542 | - fix warning by not passing invalid non dom props to pre tag
|
---|
| 543 |
|
---|
| 544 | ## 2.1.0 / 2016-05-20
|
---|
| 545 | - update depedndencies
|
---|
| 546 |
|
---|
| 547 | ## 2.0.4 / 2016-05-18
|
---|
| 548 | - strict dependency on highlight
|
---|
| 549 |
|
---|
| 550 | ## 2.0.3 / 2016-05-07
|
---|
| 551 | - update dependency and add new styles
|
---|
| 552 |
|
---|
| 553 | ## 2.0.2 / 2016-04-19
|
---|
| 554 | - fix bad import in readme
|
---|
| 555 |
|
---|
| 556 | ## 2.0.1 / 2016-04-19
|
---|
| 557 | - fix missing quotes around import location in readme example
|
---|
| 558 |
|
---|
| 559 | ## 2.0.0 / 2016-04-17
|
---|
| 560 | - have user pass in style object instead of string of style name
|
---|
| 561 |
|
---|
| 562 | ## 1.3.0 / 2016-04-03
|
---|
| 563 | - make peerDependency of react more liberal
|
---|
| 564 |
|
---|
| 565 | ## 1.2.0 / 2016-03-27
|
---|
| 566 | - code style changes
|
---|
| 567 | - add new highlight.js styles
|
---|
| 568 |
|
---|
| 569 | ## 1.1.2 / 2016-01-31
|
---|
| 570 | - remove unused createTextElement function
|
---|
| 571 |
|
---|
| 572 | ## 1.1.1 / 2016-01-31
|
---|
| 573 | - use a Text component instead of createTextElement function
|
---|
| 574 | - explain js styles in readme
|
---|
| 575 |
|
---|
| 576 | ## 1.1.0 / 2016-01-30
|
---|
| 577 | - use default top level style from highightjs
|
---|
| 578 | - fix spelling of segment in code (by @winkler1)
|
---|
| 579 |
|
---|
| 580 | ## 1.0.2 / 2016-01-29
|
---|
| 581 | - update package to allow any version of react 14
|
---|
| 582 |
|
---|
| 583 | ## 1.0.1 / 2016-01-29
|
---|
| 584 | - wrap children in code element as well as pre element
|
---|
| 585 |
|
---|
| 586 | ## 1.0.0 / 2016-01-28
|
---|
| 587 | - add script to build javascript styles
|
---|
| 588 | - write readme
|
---|
| 589 | - allow changing style in demo
|
---|
| 590 |
|
---|
| 591 | ## 0.0.2 / 2016-01-28
|
---|
| 592 | - add script to build javascript styles
|
---|
| 593 | - write readme
|
---|
| 594 | - update lowlight version
|
---|
| 595 | - use pre not span
|
---|
| 596 | - pass along optional props to pre tag
|
---|
| 597 |
|
---|
| 598 | ## 0.0.1 / 2016-01-26
|
---|
| 599 | - initial version
|
---|
| 600 | - syntax highlighting using virtual dom created by lowlight
|
---|