l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

defaults.js (581B)


      1 function getDefaults() {
      2   return {
      3     baseUrl: null,
      4     breaks: false,
      5     gfm: true,
      6     headerIds: true,
      7     headerPrefix: '',
      8     highlight: null,
      9     langPrefix: 'language-',
     10     mangle: true,
     11     pedantic: false,
     12     renderer: null,
     13     sanitize: false,
     14     sanitizer: null,
     15     silent: false,
     16     smartLists: false,
     17     smartypants: false,
     18     tokenizer: null,
     19     walkTokens: null,
     20     xhtml: false
     21   };
     22 }
     23 
     24 function changeDefaults(newDefaults) {
     25   module.exports.defaults = newDefaults;
     26 }
     27 
     28 module.exports = {
     29   defaults: getDefaults(),
     30   getDefaults,
     31   changeDefaults
     32 };