Skip to content

Instantly share code, notes, and snippets.

@amitmerchant1990
Created January 19, 2017 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitmerchant1990/459411c6cd68fd0909d5a90b3c8e62b3 to your computer and use it in GitHub Desktop.
Save amitmerchant1990/459411c6cd68fd0909d5a90b3c8e62b3 to your computer and use it in GitHub Desktop.
convert(this) {
if(this.toggleVal==true){
if(this.plainText && this.plainText!=''){
let plainText = this.plainText
this.markdownText = marked(plainText.toString())
this.content = this.markdownText
}else{
this.toggleVal=false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment