|
@@ -1,4 +1,4 @@
|
|
|
-;/*! showdown 13-06-2015 */
|
|
|
+;/*! showdown 15-06-2015 */
|
|
|
(function(){
|
|
|
/**
|
|
|
* Created by Tivie on 06-01-2015.
|
|
@@ -54,18 +54,32 @@ showdown.getOption = function (key) {
|
|
|
/**
|
|
|
* Get the global options
|
|
|
* @static
|
|
|
- * @returns {{omitExtraWLInCodeBlocks: boolean, prefixHeaderId: boolean}}
|
|
|
+ * @returns {{}}
|
|
|
*/
|
|
|
showdown.getOptions = function () {
|
|
|
'use strict';
|
|
|
return globalOptions;
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * Reset global options to the default values
|
|
|
+ * @static
|
|
|
+ */
|
|
|
showdown.resetOptions = function () {
|
|
|
'use strict';
|
|
|
globalOptions = JSON.parse(JSON.stringify(defaultOptions));
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * Get the default options
|
|
|
+ * @static
|
|
|
+ * @returns {{}}
|
|
|
+ */
|
|
|
+showdown.getDefaultOptions = function () {
|
|
|
+ 'use strict';
|
|
|
+ return defaultOptions;
|
|
|
+};
|
|
|
+
|
|
|
/**
|
|
|
* Get or set a subParser
|
|
|
*
|