Closed SantoshRaoBlr closed 5 years ago
After doing an import of showdown, import showdown from 'showdown'; I can call methods like showdown.setOption('literalMidWordUnderscores',true)
But is there a way I can convert markup to html, something like this in component js action method
showdown.Converter.makeHtml(fileContents)
import showdown from 'showdown'; import config from 'ember-get-config'; converter = new showdown.Converter(config.showdown); converter.makeHtml(text);
Thank you, will try
After doing an import of showdown, import showdown from 'showdown'; I can call methods like showdown.setOption('literalMidWordUnderscores',true)
But is there a way I can convert markup to html, something like this in component js action method
showdown.Converter.makeHtml(fileContents)