Skip to content

Commit

Permalink
fix non-cleaning up of ojs-created resources in single-file render
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Feb 20, 2024
1 parent 52c0f9f commit 5446285
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 62 deletions.
4 changes: 2 additions & 2 deletions src/execute/ojs/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export interface OjsCompileOptions {
markdown: MappedString;
libDir: string;
temp: TempContext;
project?: ProjectContext;
project: ProjectContext;
ojsBlockLineNumbers: number[];
}

Expand Down Expand Up @@ -153,7 +153,7 @@ export async function ojsCompile(
return { markdown: markdown };
}

const projDir = project?.dir;
const projDir = project.isSingleFile ? undefined : project.dir;
const selfContained = options.format.pandoc?.[kSelfContained] ??
options.format.pandoc?.[kEmbedResources] ?? false;
const isHtmlMarkdown = isMarkdownOutput(options.format, [
Expand Down
59 changes: 0 additions & 59 deletions tools/trace-viewer/edit-distance.js

This file was deleted.

2 changes: 1 addition & 1 deletion tools/trace-viewer/trace-viewer.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ trace = Generators.observe((change) => {
import { convertDoc } from "./convert-pandoc-json.js";
import { drawTree } from "./draw-tree.js";
import { jsonpatch } from "./jsonpatch.js";
import { editDistance } from "./edit-distance.js";
import { editDistance } from "./edit-distance.ts";
```

::: {.column-screen-inset}
Expand Down

0 comments on commit 5446285

Please sign in to comment.