remarked
Version:
Markdown parser and lexer. A fork of marked.js maintained for Assemble.
29 lines (27 loc) • 747 B
JavaScript
/*!
* remarked <https://github.com/jonschlinkert/remarked>
*
* Copyright (c) 2014 Jon Schlinkert
* Licensed under the MIT license.
*
* Based on marked <https://github.com/chjj/marked>
* Copyright (c) 2011-2014, Christopher Jeffrey, contributors.
* Released under the MIT License (MIT)
*/
module.exports = [
';(function() {',
'',
'<%= code %>',
'',
'if (typeof module !== "undefined" && typeof exports === "object") {',
' module.exports = marked;',
'} else if (typeof define === "function" && define.amd) {',
' define(function() { return marked; });',
'} else {',
' this.marked = marked;',
'}',
'',
'}).call(function() {',
' return this || (typeof window !== "undefined" ? window : global);',
'}());'
];