Angular (>=2) integration for Showdown
MIT License
Published by yisraelx over 5 years ago
trimEachLine
option is deprecated (986fb0f)@types/showdown
(c0d9e70)ShowdownComponent
(ad14998)SourceDirective
(534e7ea)value
directly to render
(4f5a7b2)flavor
(7793dec), closes #9
error
(d4687e4)src
directly to load
(a690bad)BaseConverter
class with ShowdownConverter
class (19d8bec)ConverterOptions
class to ShowdownConfig
and remove BaseConverterOptions
class.BaseConverter
class (Use ShowdownConverter
IConverterOptionsChangeable
(Use Showdown.ShowdownOptions
instead) and IConverterOptions
(Use Showdown.ConverterOptions
instead).src
property of component instance no longer trigger load, to load after assignment invokes the load
method.SrcDirective
to SourceDirective
toHTML
(Use element.innerHTML
instead) and setValue
(Use render
method instead) methods.compile
to render
, Removes registerOnChange
method, status
and type
props.render
method.trimEachLine
is deprecated, use smartIndentationFix
instead.ShowdownDirective
to ShowdownComponent
Published by yisraelx over 6 years ago
Published by yisraelx about 7 years ago
<a name"3.0.0">
to 'showdown.directive'
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';
before
<md [value]="text"></md>
<div [md]="text"></div>
after
<showdown [value]="text"></showdown>
<div [showdown]="text"></div>
before
MdDirective.md
after
ShowdownDirective.showdown
before
import { MdModule } from 'ng2-md/lib/md.module';
after
import { ShowdownModule } from 'ngx-showdown/lib/showdown.module';
before
import { MdPipe } from 'ng2-md/lib/md.pipe';
after
import { ShowdownPipe } from 'ngx-showdown/lib/showdown.pipe';
before
{{ text | md }}
{{ text | md:options }}
after
{{ text | showdown }}
{{ text | showdown:options }}
before
import { MdConverter } from 'ng2-md/lib/md-converter.provider';
after
import { ShowdownConverter } from 'ngx-showdown/lib/showdown-converter.provider';
(38c0847f)
Published by yisraelx over 7 years ago
<a name"2.0.0">
IConverterOptions => IConverterOptionsChangeable
Before
import { IConverterOptions
} from 'ng2-md';
After
import { IConverterOptionsChangeable } from
'ng2-md';
======
IConverterOptions
Before
import { IConverterConstructorOptions } from
'ng2-md';
After
import { IConverterOptions } from 'ng2-md';
(7c85fcbc)