@@ -50,32 +50,7 @@ var argv = nomnom
5050
5151    . option ( 'simulate' ,  {  flag : true ,  'default' : false ,  help : 'Execute but not write any file.'  } ) 
5252
53-     // markdown settings 
54-     . option ( 'markdown' ,  {  flag : true ,  'default' : true ,  help : 'Turn off markdown parser.'  } ) 
55- 
56-     . option ( 'marked-config' ,       {  'default' : '' , 
57-             help : 'Enable custom markdown parser configs. It will overwite all other marked settings.'  } ) 
58- 
59-     . option ( 'marked-gfm' ,          {  flag : true ,  'default' : true , 
60-             help : 'Enable GitHub flavored markdown.'  } ) 
61- 
62-     . option ( 'marked-tables' ,       {  flag : true ,  'default' : true , 
63-             help : 'Enable GFM tables. This option requires the gfm option to be true.'  } ) 
64- 
65-     . option ( 'marked-breaks' ,       {  flag : true ,  'default' : false , 
66-             help : 'Enable GFM line breaks. This option requires the gfm option to be true.'  } ) 
67- 
68-     . option ( 'marked-pedantic' ,     {  flag : true ,  'default' : false , 
69-             help : 'Conform to obscure parts of markdown.pl as much as possible.'  } ) 
70- 
71-     . option ( 'marked-sanitize' ,     {  flag : true ,  'default' : false , 
72-             help : 'Sanitize the output. Ignore any HTML that has been input.'  } ) 
73- 
74-     . option ( 'marked-smartLists' ,   {  flag : true ,  'default' : false , 
75-             help : 'Use smarter list behavior than the original markdown.'  } ) 
76- 
77-     . option ( 'marked-smartypants' ,  {  flag : true ,  'default' : false , 
78-             help : 'Use \'smart\' typograhic punctuation for things like quotes and dashes.'  } ) 
53+     . option ( 'markdown' ,  {  'default' : true ,  help : 'Turn off default markdown parser or implement a custom parser.'  } ) 
7954
8055    . parse ( ) 
8156; 
@@ -104,28 +79,6 @@ function transformToObject(filters) {
10479    return  result ; 
10580} 
10681
107- /** 
108-  * Sets configuration for markdown 
109-  * 
110-  * @param  {Array } argv 
111-  * @returns  {Object } 
112-  */ 
113- function  resolveMarkdownOptions ( argv )  { 
114-     if  ( argv [ 'marked-config' ] )  { 
115-         return  require ( path . resolve ( argv [ 'marked-config' ] ) ) ; 
116-     }  else  { 
117-         return  { 
118-             gfm         : argv [ 'marked-gfm' ] , 
119-             tables      : argv [ 'marked-tables' ] , 
120-             breaks      : argv [ 'marked-breaks' ] , 
121-             pedantic    : argv [ 'marked-pedantic' ] , 
122-             sanitize    : argv [ 'marked-sanitize' ] , 
123-             smartLists  : argv [ 'marked-smartLists' ] , 
124-             smartypants : argv [ 'marked-smartypants' ] 
125-         } ; 
126-     } 
127- } 
128- 
12982var  options  =  { 
13083    excludeFilters : argv [ 'exclude-filters' ] , 
13184    includeFilters : argv [ 'file-filters' ] , 
@@ -142,8 +95,7 @@ var options = {
14295    workers        : transformToObject ( argv [ 'parse-workers' ] ) , 
14396    silent         : argv [ 'silent' ] , 
14497    simulate       : argv [ 'simulate' ] , 
145-     markdown       : argv [ 'markdown' ] , 
146-     marked         : resolveMarkdownOptions ( argv ) 
98+     markdown       : argv [ 'markdown' ] 
14799} ; 
148100
149101if  ( apidoc . createDoc ( options )  ===  false )  { 
0 commit comments