ngx-showdown

Angular (>=2) integration for Showdown

MIT License

Downloads
17.9K
Stars
16
Committers
2

Bot releases are hidden (Show)

ngx-showdown - v6.0.0 Latest Release

Published by yisraelx about 4 years ago

6.0.0 (2020-08-16)

Features

  • upgrade to angular 10 (76a11a2), closes #20

BREAKING CHANGES

  • support only typescript 3.7 and above (typescript-3-7#class-field-mitigations)
ngx-showdown - v5.1.0

Published by yisraelx over 4 years ago

5.1.0 (2020-02-17)

Bug Fixes

  • Ivy Compatibility Issues (768a2c7)

Features

ngx-showdown - v5.0.0

Published by yisraelx over 5 years ago

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
ngx-showdown - v4.0.2

Published by yisraelx over 6 years ago

4.0.2 (2018-05-07)

Bug Fixes

  • update to angular ^6.0.0 (681c175), closes #7
ngx-showdown - v4.0.1

Published by yisraelx over 6 years ago

4.0.1 (2018-02-03)

Bug Fixes

  • repair of the umd bundle (package.browser) (53bc504)
ngx-showdown - v4.0.0

Published by yisraelx over 6 years ago

4.0.0 (2018-01-31)

Bug Fixes

BREAKING CHANGES

  • SrcDirective: Change in peerDependencies @angular/http replaced by @angular/common/http
ngx-showdown - v3.1.0

Published by yisraelx about 7 years ago

3.1.0 (2017-08-31)

Features

  • update showdown options for current options (8f91b65)
ngx-showdown - v3.0.0

Published by yisraelx about 7 years ago

<a name"3.0.0">

3.0.0 (2017-07-28)

Bug Fixes

  • rename all item from 'md' to 'showdown' (38c0847f)
  • rename library from 'ng2-md' to 'ngx-showdown' (d0e9c94c)

Breaking Changes

  • rename lib from 'ng2-md' to 'ngx-showdown'

rename file from 'md.directive'

to 'showdown.directive'

  • rename enum from 'MD_COMPONENT_TYPES' to 'SHOWDOWN_DIRECTIVE_TYPES'
  • rename enum from 'MD_COMPONENT_STATUSES' to 'SHOWDOWN_DIRECTIVE_STATUSES'
  • rename class from 'MdDirective' to 'ShowdownDirective'

before

import {
 MD_COMPONENT_TYPES,
 MD_COMPONENT_STATUSES,
 MdDirective
} from 'ng2-md/lib/md.directive';

after

import {
 SHOWDOWN_DIRECTIVE_TYPES,
 SHOWDOWN_DIRECTIVE_STATUSES ,
 ShowdownDirective
} from 'ngx-showdown/lib/showdown.directive';
  • rename selector from 'md,[md]' to 'showdown,[showdown]'

before

<md [value]="text"></md>
<div [md]="text"></div>

after

<showdown [value]="text"></showdown>
<div [showdown]="text"></div>
  • rename directive property from 'md' to 'showdown'

before

MdDirective.md

after

ShowdownDirective.showdown

rename file from 'md.module' to 'showdown.module'

  • rename class from 'MdModule' to 'ShowdownModule'

before

import { MdModule } from 'ng2-md/lib/md.module';

after

import { ShowdownModule } from 'ngx-showdown/lib/showdown.module';

rename file from 'md.pipe' to 'showdown.pipe'

  • rename class from 'MdPipe' to 'ShowdownPipe'

before

import { MdPipe } from 'ng2-md/lib/md.pipe';

after

import { ShowdownPipe } from 'ngx-showdown/lib/showdown.pipe';
  • rename name from 'md' to 'showdown'

before

{{ text | md }}
{{ text | md:options }}

after

{{ text | showdown }}
{{ text | showdown:options }}

rename file from 'md-converter.provider' to 'showdown-converter.provider'

  • rename class from 'MdConverter' to 'ShowdownConverter'

before

import { MdConverter } from 'ng2-md/lib/md-converter.provider';

after

import { ShowdownConverter } from 'ngx-showdown/lib/showdown-converter.provider';

(38c0847f)

ngx-showdown - v2.2.0

Published by yisraelx over 7 years ago

<a name"2.2.0">

2.2.0 (2017-06-14)

Bug Fixes

  • aot: ng2-md now supports aot, (b32aa63b, closes #5)

Features

  • update showdown options for current options (43831fe0)
ngx-showdown - v2.1.0

Published by yisraelx over 7 years ago

<a name"2.1.0">

2.1.0 (2017-05-31)

Bug Fixes

  • package: move "@types/showdown" from "devDependencies" to "dependencies" (4c3806d2, closes #4)

Features

  • package: update dependencies (19e822cb)
ngx-showdown - v2.0.1

Published by yisraelx over 7 years ago

<a name"2.0.1">

2.0.1 (2017-04-01)

Bug Fixes

  • MdDirective: update MdDirective properties to current Showdown options (1026d743)
ngx-showdown - v2.0.0

Published by yisraelx over 7 years ago

<a name"2.0.0">

2.0.0 (2017-03-30)

Bug Fixes

  • ConverterOptions: update ConverterOptions to current Showdown options (678d169a)

Features

  • MdModule: add 'forRoot' method to MdModule (56f21867)

Breaking Changes

  • Rename converter options interfaces, Because the names did not make sense.

IConverterOptions => IConverterOptionsChangeable
Before

import { IConverterOptions
} from 'ng2-md';

After

import { IConverterOptionsChangeable } from
'ng2-md';

======

IConverterConstructorOptions =>

IConverterOptions
Before

import { IConverterConstructorOptions } from
'ng2-md';

After

import { IConverterOptions } from 'ng2-md';

(7c85fcbc)

ngx-showdown - v1.0.2

Published by yisraelx over 7 years ago

<a name"1.0.2">

1.0.2 (2017-02-11)

Bug Fixes

  • compiler: Switching from tsc to ngc (51b762bb, closes #1)
ngx-showdown - v1.0.1

Published by yisraelx almost 8 years ago

<a name"1.0.1">

1.0.1 (2017-01-16)

Bug Fixes

  • package: repair of browser path and remove engines. (181eddd5)
ngx-showdown - v1.0.0

Published by yisraelx almost 8 years ago

<a name"1.0.0">

1.0.0 (2017-01-01)

Features