groton-school / knowledgebase

Knowledgebase website
https://kb.groton.org
GNU General Public License v3.0
0 stars 0 forks source link

Rewrite pipelineHTML #42

Open github-actions[bot] opened 1 month ago

github-actions[bot] commented 1 month ago

https://github.com/groton-school/knowledgebase/blob/8f2f2cf310aa1beb23977286c6176fcebfb9b634/packages/index/src/Actions/pipelineHTML.ts#L4


import File from '../File';
import { JSDOM } from 'jsdom';

// TODO pipelineHTML needs a re-think

type PipelineFunction = (params: { file: File; html: string }) => string;

const injectGoogleDocId: PipelineFunction = ({ file, html }) => {