Created
January 19, 2017 06:48
-
-
Save amitmerchant1990/459411c6cd68fd0909d5a90b3c8e62b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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