We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2304786 commit ddc87b4Copy full SHA for ddc87b4
src/command/render/flags.ts
@@ -471,7 +471,12 @@ export function removePandocToArg(args: string[]) {
471
}
472
473
export function removePandocTo(renderOptions: RenderOptions) {
474
- renderOptions = ld.cloneDeep(renderOptions);
+ renderOptions = {
475
+ ...renderOptions,
476
+ flags: {
477
+ ...(renderOptions.flags || {}),
478
+ },
479
+ } as RenderOptions;
480
delete renderOptions.flags?.to;
481
if (renderOptions.pandocArgs) {
482
renderOptions.pandocArgs = removePandocToArg(renderOptions.pandocArgs);
0 commit comments