memd-cli 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +1 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -276,7 +276,6 @@ async function main() {
|
|
|
276
276
|
.option('--no-pager', 'disable pager (less)')
|
|
277
277
|
.option('--no-mouse', 'disable mouse scroll in pager')
|
|
278
278
|
.option('--no-color', 'disable colored output')
|
|
279
|
-
.option('--no-highlight', 'disable syntax highlighting')
|
|
280
279
|
.option('--width <number>', 'terminal width override', Number)
|
|
281
280
|
.option('--ascii', 'use pure ASCII mode for diagrams (default: unicode)')
|
|
282
281
|
.option('--theme <name>', `syntax highlight theme (${THEME_NAMES.join(', ')})`, 'default')
|
|
@@ -292,7 +291,7 @@ async function main() {
|
|
|
292
291
|
const useColor = options.color !== false && !process.env.NO_COLOR;
|
|
293
292
|
|
|
294
293
|
// Configure syntax highlighting options (passed to cli-highlight)
|
|
295
|
-
const shouldHighlight =
|
|
294
|
+
const shouldHighlight = useColor;
|
|
296
295
|
|
|
297
296
|
// Configure marked with terminal renderer
|
|
298
297
|
const selectedTheme = THEMES[themeName];
|