You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't always want to write to the DOM straight away, so it would be nice if jscreole provided a function that just returned a string. I'm currently doing:
function creoleToHtml(creoleSource) {
var parser = new creole({
linkFormat: '#'
});
var div = document.createElement('div');
parser.parse(div, creoleSource);
return div.innerHTML;
}
but this would probably be cleaner inside jscrole.
The text was updated successfully, but these errors were encountered:
I don't always want to write to the DOM straight away, so it would be nice if jscreole provided a function that just returned a string. I'm currently doing:
but this would probably be cleaner inside jscrole.
The text was updated successfully, but these errors were encountered: