Skip to content

Commit

Permalink
run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Oct 15, 2023
1 parent bca9b72 commit 36398cf
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/command/render/render-contexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,19 @@ export async function renderContexts(

// if a markdown detected engine changed then re-scan
if (engineClaimReason === "markdown") {
const detectedEngine = fileExecutionEngine(file.path, options.flags, markdown);
const detectedEngine = fileExecutionEngine(
file.path,
options.flags,
markdown,
);
if (detectedEngine && (context.engine.name !== detectedEngine.name)) {
context.engine = detectedEngine;
const target = await detectedEngine.target(file.path, options.flags?.quiet, markdown, project);
const target = await detectedEngine.target(
file.path,
options.flags?.quiet,
markdown,
project,
);
if (!target) {
throw new Error("Unable to render " + file);
}
Expand Down

0 comments on commit 36398cf

Please sign in to comment.