Search
Code40
import { fetch as proxiedFetch } from "https://esm.town/v/std/fetch";import { email } from "https://esm.town/v/std/email";import { parseHTML } from "npm:linkedom";const URL =
import { fetch as proxiedFetch } from "https://esm.town/v/std/fetch";import { email } from "https://esm.town/v/std/email";import { parseHTML } from "npm:linkedom";const URL =
import { addDays, startOfWeek, endOfWeek, format, isSameDay } from 'npm:date-fns@3.0.0'import { formatInTimeZone, toZonedTime } from 'npm:date-fns-tz@3.0.0'import { parseHTML } from 'npm:linkedom@0.18.0'// ============================================================================
import * as Plot from "npm:@observablehq/plot@0.6.14";import { d3 } from "npm:d3@7";import { parseHTML } from "npm:linkedom@0.15";const style = `
import { Client } from "npm:@notionhq/client";import process from "node:process";import { DOMParser } from "npm:linkedom";import { createCanvas } from "jsr:@gfx/canvas@0.5.6";
import { MathMLToLaTeX } from "npm:mathml-to-latex";// import { processUrls } from "./string-utils.ts";import { DOMParser, parseHTML } from "npm:linkedom";// import { debugLog } from './debug';}// @todo rewrite to use linkedom DOMParserexport function processUrls(htmlContent: string, baseUrl: URL): string { let parser = new DOMParser();
import { MathMLToLaTeX } from "npm:mathml-to-latex";// import { processUrls } from "./string-utils.ts";import { DOMParser, parseHTML } from "npm:linkedom";// import { debugLog } from './debug';}// @todo rewrite to use linkedom DOMParserexport function processUrls(htmlContent: string, baseUrl: URL): string { let parser = new DOMParser();
// deno-lint-ignore-file prefer-constimport { DOMParser } from "npm:linkedom";// Cases to handle:}// @todo rewrite to use linkedom DOMParserexport function processUrls(htmlContent: string, baseUrl: URL): string { let parser = new DOMParser();
import Defuddle from "npm:defuddle";// import turndown from "npm:turndown";import { DOMParser } from "npm:linkedom";let htmlExample = `
Users
No users found
and provides an API for traversing/manipulating the resulting data structure. We also recommend node-html-parser and linkedom. ExampleRun in Val Town ↗ import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=6"; import { load