diff --git a/index.js b/index.js index 6e9b461..07e2f7f 100644 --- a/index.js +++ b/index.js @@ -80,6 +80,14 @@ var pandocRenderer = function(data, options, callback){ var msg = ''; if (code !== 0) msg += 'pandoc exited with code '+code+(error ? ': ' : '.'); + // remove these two harmless warning messages + // to prevent program from crashing + error = error.replace( + "[WARNING] This document format requires a nonempty