sugar-high

✏️ Super lightweight JSX syntax highlighter, around 1KB after minified and gzipped

Stars
530
Committers
7

Bot releases are visible (Hide)

sugar-high - v0.2.1

Published by huozhi over 2 years ago

Bug Fixes

  • Fix: detection end of expression #20
  • Fix: pair the quotes of string #21

Docs & Misc

  • Use pnpm as package manager & github actions
  • Rewrite docs in nextjs by #16 #17
  • Update OG Card #18
sugar-high - v0.2.0

Published by huozhi over 2 years ago

Changelog

Features

  • Add new token type jsxliterals (JSX Literals) which represents the content of JSX.
  • Now it takes regex flags as part of regex itself. e.g.g will be part of /regex/g.

Performance Improvement

  • Only detect regex and comment once during parsing
sugar-high - v0.1.1

Published by huozhi over 2 years ago

0.1.1

Fixed few bugs of string/regex/comments highlighting

Enhancement

  • Detect regex based on context
  • Parse comment at one trip
  • Add type declaration
sugar-high - v0.0.8

Published by huozhi over 2 years ago

Bug Fixes

  • Fix jsx literals parsing (#6)
  • Fix: inline jsx attributes parsing (#4)

Website

Merge the editor with highligh code in one pad. Kudos to @javierbyte for the idea

sugar-high - v0.0.6

Published by huozhi over 2 years ago

Changes

Very fist usable version of sugar-high syntax highlighter

  • Use token type names for CSS class
  • Support parsing JSX
  • Support Classes, numbers and null
Badges
Extracted from project README
Build Coverage
Related Projects