Skip to content

v5.0.0

Choose a tag to compare

@yisraelx yisraelx released this 16 Jun 09:25
· 14 commits to master since this release

5.0.0 (2019-06-16)

Bug Fixes

  • ShowdownComponent: wrong cast of input option (5953220)

Code Refactoring

  • BaseConverter: trimEachLine option is deprecated (986fb0f)
  • options: Move to options interfaces of @types/showdown (c0d9e70)
  • ShowdownDirective: renamed to ShowdownComponent (ad14998)
  • SrcDirective: renamed to SourceDirective (534e7ea)

Features

  • ShowdownComponent: add option to pass value directly to render (4f5a7b2)
  • add support to set flavor (7793dec), closes #9
  • ShowdownComponent: add option to sanitize the convert html output (4eb36a8)
  • ShowdownComponent: add support for template reference variable (a946364)
  • SourceDirective: add event/output (EventEmitter) for error (d4687e4)
  • SourceDirective: add option to pass src directly to load (a690bad)
  • SourceDirective: add support for template reference variable (5a2fda6)

Performance Improvements

  • ShowdownComponent: change the way changes are detected and updated (85b1f3d)
  • SourceDirective: change the way changes are detected and updated (e3a58e5)
  • Replace BaseConverter class with ShowdownConverter class (19d8bec)

BREAKING CHANGES

  • rename ConverterOptions class to ShowdownConfig and remove BaseConverterOptions class.
  • Removed BaseConverter class (Use ShowdownConverter
    instead)
  • options: Removes options interfaces IConverterOptionsChangeable (Use Showdown.ShowdownOptions instead) and IConverterOptions (Use Showdown.ConverterOptions instead).
  • SourceDirective: The assignment of url to src property of component instance no longer trigger load, to load after assignment invokes the load method.
  • SrcDirective: rename SrcDirective to SourceDirective
  • ShowdownComponent: removes toHTML (Use element.innerHTML instead) and setValue (Use render method instead) methods.
  • ShowdownComponent: rename compile to render, Removes registerOnChange method, status and type props.
    The assignment of values to the component instance properties no longer trigger render, to render after assignment invokes the render method.
  • BaseConverter: trimEachLine is deprecated, use smartIndentationFix instead.
  • ShowdownDirective: rename ShowdownDirective to ShowdownComponent