Skip to content

Releases: alecthomas/chroma

v3.0.0-alpha.5

Choose a tag to compare

@github-actions github-actions released this 08 Jul 03:40

Changelog

  • 01c740b fix: use sync.OnceValue for FontLiberationMono

v3.0.0-alpha.4

Choose a tag to compare

@github-actions github-actions released this 08 Jul 03:40

Changelog

  • 20d2910 docs: document remaining HTML formatter options in README
  • 5557e83 chore: remove commented-out panic, allocate trace encoder lazily
  • d5de026 docs: correct stale style and HTML formatter doc comments
  • 7c759ac fix: stop Words mutating its callers' slices
  • 879e833 fix: escape configured values in HTML attributes
  • 8ee61c4 fix: case-normalise Counterpart lookups and serialisation
  • 15997eb fix: forward SetTracing through Coalesce and RemappingLexer
  • a69d1c0 fix: surface regex match errors instead of swallowing them
  • 34ba3a7 fix: guard against zero-width match loops in the lexer
  • 5b89a37 fix: clamp state-stack pops instead of panicking
  • 17102ca feat: exit non-zero from chroma --check on tokenisation errors
  • 06e404d refactor: embed Liberation Mono as a WOFF file, upgraded to 2.1.5
  • 43196dc fix: skip nil emitters in UsingByGroup
  • 3beda64 refactor: remove dead error variable in needRules
  • 49190d1 fix: panic loudly if the fallback style is missing
  • 1ccaeea fix: harden compressStyle and drop double compression
  • b359e38 fix: honour --check when reading from stdin
  • f19cf58 fix: do not fail on empty input with --fail
  • 59a84fd fix: bound the lexer mutator loop instead of a broken guard
  • 01c3eff fix: reject malformed colours in ParseColour
  • d21c88c chore: remove unbuildable _tools/exercise and _tools/css2style
  • 83da377 chore: remove obsolete pygments2chroma.hlb and hlb tool
  • 07cb946 docs: document StandardTypes parent-class fallback
  • 6a26849 docs: document registration concurrency contract
  • bb6fb4a fix: propagate writer errors in SVG and TTY formatters
  • 67e1502 refactor!: remove redundant Analyser interface
  • 9cb2777 refactor: share playground rendering between chromad and WASM
  • e4eafee refactor: move dns analyser into its XML definition
  • 4a9a274 refactor: extract lexer config glob validation
  • fbf2531 refactor: extract glob matching in LexerRegistry.Match
  • 05563d0 fix: correct mistyped brown in ANSI2RGB colour map
  • 3634696 refactor: share TTY attribute escape building
  • caf24e9 refactor: extract shared token-type style lookup
  • df666cd chore(deps): update all non-major dependencies (#1321)
  • 4fa0add chore: delete stray test.jsonl
  • cb55223 chore: remove commented-out config fields and dead comment
  • eb17b23 chore: delete commented-out XML generation block in NewLexer
  • ecca99e refactor!: remove unused Colours type
  • 651478f refactor!: remove unused RecoveringFormatter
  • 186adc4 fix: correct mistyped yellow in 8/16-colour TTY palettes
  • f5dd141 fix: repair README language-table generation
  • d0f6ed1 chore: tidy cmd module dependencies
  • 7eff956 fix: correct SVG @font-face CSS syntax and MIME types
  • 180daf7 fix: remove shadowed entries from 256-colour TTY tables
  • a6b9dc7 refactor: remove redundant re-sort of styles in chromad
  • bff8721 refactor: restore lineRanges sort.Interface implementation
  • bcc0d8f refactor: replace deprecated ioutil.ReadAll with io.ReadAll
  • b151274 refactor: replace math.Min/Max with builtin min/max
  • 76cf6db refactor: replace sort package usage with slices/cmp
  • 50f98ad feat: add HTML line prompts (#1319)
  • 30b3d6c chore: add theme request link
  • 37d03cd chore: route lexer requests to discussions
  • 122e010 Add Astro lexer (#1296)
  • deca444 feat(lexers): add Hurl lexer (#1298)
  • c74f282 feat: add JQ syntax highlighting lexer (#1290)
  • ff53760 formatters/html: drop -moz-tab-size and -o-tab-size prefixes (#1279)
  • f106c56 chore(deps): update all non-major dependencies (#1297)
  • f0e1def Quality: Unsafe type assertion in panic recovery will re-panic for non-error values (#1295)
  • 4224e71 Add missing NameAttribute entry to github-dark.xml (#1294)
  • f9a15c9 chore(deps): update all non-major dependencies (#1291)
  • 35fadff chore(deps): update actions/checkout action to v7 (#1292)
  • ad9051e chore: delete hcl lexer

v3.0.0-alpha.3

Choose a tag to compare

@github-actions github-actions released this 17 Jun 06:34

Changelog

  • 900164f fix: use v3 version in cmd go.mod require lines

v2.27.0

Choose a tag to compare

@github-actions github-actions released this 17 Jun 02:12

Changelog

  • a6d00fe fix(html): make mode class output opt-in via WithModeClasses
  • f52d015 chore: some house-keeping
  • f08a9ab chore: add fmt + test to BUILD.bit
  • 6da8f88 fix(yaml): comments can be key-values (#1289)
  • 67785a4 chore(deps): update all non-major dependencies (#1285)
  • d9dd73f Add templ XML lexer (#1283)
  • effffdb chore(deps): update all non-major dependencies (#1280)
  • 03236a4 support for PostScript font files (#1282)
  • e10d532 Fix YAML slash comments with colons (#1278)

v2.26.1

Choose a tag to compare

@github-actions github-actions released this 29 May 00:50

Changelog

  • 56c7702 fix: downgrade go.mod version to 1.25

v2.26.0

Choose a tag to compare

@github-actions github-actions released this 28 May 02:00

Changelog

  • a4d3f60 feat(chromad): use style counterparts for theme switching
  • ce159e6 chore: migrate to new bit format
  • 180ea9f perf(colour): replace Sprintf/ParseUint round-trip in NewColour with direct bit arithmetic (#1274)
  • 68a08b0 docs: how to support dynamic theme switching
  • 6fb9d92 feat(html): tag output with style mode
  • a71fea3 feat(styles): add light/dark mode support

v2.25.0

Choose a tag to compare

@github-actions github-actions released this 26 May 01:21

Changelog

v2.24.1

Choose a tag to compare

@github-actions github-actions released this 30 Apr 12:04

Changelog

v2.24.0

Choose a tag to compare

@github-actions github-actions released this 29 Apr 11:10

Changelog

v2.23.1

Choose a tag to compare

@github-actions github-actions released this 23 Jan 02:33

Changelog