Skip to content

Latest commit

 

History

History
104 lines (63 loc) · 3.12 KB

CHANGELOG.md

File metadata and controls

104 lines (63 loc) · 3.12 KB

2.5.1 (2021-09-17)

Improvements

  • Updated highlight.js to v11

Fixes

  • Fixed typings

2.5.0 (2021-06-03)

Features

  • Added typings

2.4.2 (2021-02-19)

Improvements

  • Changed code to use the markdown.outFor(rule, key) API
  • Upgraded highlight.js from 10.1.2 to 10.6.0
  • Updated simple-markdown from 0.7.2 to 0.7.3

Fixes

  • Fixed animated emoji URLs

2.4.1 (2020-09-23)

Fixes

  • Removed unneeded end tag for emoji images

2.4.0 (2020-08-25)

Features

  • Added a minified dist file for use in browsers
  • Added the ability to create custom rule sets

Improvements

  • Changed Discord emojis to image elements
  • Moved discordCallback to the state
  • Upgraded highlight.js to version 10

Fixes

  • Added text sanitizing to all user input in the default discordCallback functions

2.3.1 (2020-02-20)

Fixes

  • Code blocks without highlighting were not escaping HTML, allowing the browser to render arbitrary HTML

2.3.0 (2020-02-04)

  • Fixed inline code strings not being trimmed and sanitized
  • Fixed block quote handling
  • Fixed emphasis/italic markdown being output wrong when * and _ were combined
  • Upgraded simple-markdown to from 0.5 to 0.7
  • Upgraded highlight.js from 9.15 to 9.18

2.2.0 (2019-08-05)

  • Added support for block quotes
  • Updated spoilers to match the Discord release of them
  • Updated deps
  • Support one-line fenced code blocks
  • Support block quotes
  • Sanitize text in attribute strings (htmlTag)
  • Use Discord strike regex
  • Use Discord emoticon rule for shrug
  • Use Discord spoiler regex

2.1.2 (2019-01-31)

Fixes

  • Updated spoiler handling to match the Discord release of spoiler tags
  • Added eslint to travis

2.1.1 (2018-12-17)

Fixes

  • Fixed CSS Module support in highlight.js code blocks

2.1.0 (2018-12-14)

This release improves on the library to make it easier to use and less error-prone.

Features

  • Added CSS Module support with options.cssModuleNames
  • Add initial support for spoilers. This feature is not final, and will change as Discord releases it.

Improvements

  • Store options in the simple-markdown state instead of persistent variables, preventing options from impacting all other instances.
  • Wrap mentions and emojis in span tags, including scoped classes for styling.
  • Made code block parsing more lenient to further match Discord.