diff --git a/lua/preview/compiler.lua b/lua/preview/compiler.lua index 38a048e..74d6070 100644 --- a/lua/preview/compiler.lua +++ b/lua/preview/compiler.lua @@ -162,7 +162,6 @@ function M.compile(bufnr, name, provider, ctx, opts) if provider.open - and not opts.oneshot and not opened[bufnr] and output_file ~= '' and vim.uv.fs_stat(output_file) @@ -241,7 +240,6 @@ function M.compile(bufnr, name, provider, ctx, opts) end if provider.open - and not opts.oneshot and not opened[bufnr] and output_file ~= '' and vim.uv.fs_stat(output_file) diff --git a/lua/preview/presets.lua b/lua/preview/presets.lua index 30693ff..8a23766 100644 --- a/lua/preview/presets.lua +++ b/lua/preview/presets.lua @@ -246,7 +246,7 @@ M.asciidoctor = { ft = 'asciidoc', cmd = { 'asciidoctor' }, args = function(ctx) - return { '--failure-level', 'ERROR', ctx.file, '-o', ctx.output } + return { ctx.file, '-o', ctx.output } end, output = function(ctx) return (ctx.file:gsub('%.adoc$', '.html')) diff --git a/spec/presets_spec.lua b/spec/presets_spec.lua index 9259d5a..ab030f0 100644 --- a/spec/presets_spec.lua +++ b/spec/presets_spec.lua @@ -467,7 +467,7 @@ describe('presets', function() it('returns args with file and output', function() assert.are.same( - { '--failure-level', 'ERROR', '/tmp/document.adoc', '-o', '/tmp/document.html' }, + { '/tmp/document.adoc', '-o', '/tmp/document.html' }, presets.asciidoctor.args(adoc_ctx) ) end)