Skip to content

v0.1.0

Choose a tag to compare

@dvhsh dvhsh released this 28 Sep 22:15
8f0c31a

Added

  • parse and serialize: osu! BBCode to a lossless tree with source ranges and back. Unclosed, unknown and malformed tags stay text, as on osu!.
  • render: safe HTML with bb- classes, osu!'s newline eating and automatic links, and an optional media proxy.
  • lint with eleven codes and fixes where obvious, applyFix, count, LIMITS, TAGS and findTag.
  • ./styles.css: a dark stylesheet for rendered output, with a light variant (bb--light).
  • ./helpers: color, normalizeColor, gradient (with its character cost), flag, profile, box, list and escapeBBCode.
  • ./imagemap: parseImagemap, validateImagemap, serializeImagemap and formatPercent.
  • ./flags: COUNTRIES (ISO 3166-1 alpha-2), findCountry, searchCountries, flagUrl and normalizeCountryCode.
  • ./template: fillTemplate, templateFields and FIELD_KINDS.