Skip to content

Commit 7c4c84f

Browse files
claude: Remove duplicate engine-shared.ts
The functions in engine-shared.ts (languagesInMarkdown, languagesInMarkdownFile, postProcessRestorePreservedHtml) have identical implementations in src/core/pandoc/pandoc-partition.ts and src/core/jupyter/preserve.ts. Update imports to use the canonical locations and remove the duplicate file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 06697fa commit 7c4c84f

3 files changed

Lines changed: 2 additions & 51 deletions

File tree

‎src/execute/engine-shared.ts‎

Lines changed: 0 additions & 49 deletions
This file was deleted.

‎src/execute/engine.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
ExecutionTarget,
2828
kQmdExtensions,
2929
} from "./types.ts";
30-
import { languagesInMarkdown } from "./engine-shared.ts";
30+
import { languagesInMarkdown } from "../core/pandoc/pandoc-partition.ts";
3131
import { languages as handlerLanguages } from "../core/handlers/base.ts";
3232
import { RenderContext, RenderFlags } from "../command/render/types.ts";
3333
import { mergeConfigs } from "../core/config.ts";

‎src/execute/ojs/compile.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import { logError } from "../../core/log.ts";
6565
import { breakQuartoMd, QuartoMdCell } from "../../core/lib/break-quarto-md.ts";
6666

6767
import { MappedString } from "../../core/mapped-text.ts";
68-
import { languagesInMarkdown } from "../engine-shared.ts";
68+
import { languagesInMarkdown } from "../../core/pandoc/pandoc-partition.ts";
6969

7070
import {
7171
pandocBlock,

0 commit comments

Comments
 (0)