Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.94 KB

CHANGELOG.md

File metadata and controls

53 lines (35 loc) · 1.94 KB

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.