Skip to content

Commit

Permalink
Minor modifications supporting modern imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingtonbear committed Aug 16, 2024
1 parent b62df5d commit 492b6e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/declaration.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
declare module '*.css'
declare module "*.css";

declare module "turndown-plugin-gfm";
4 changes: 2 additions & 2 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useEffect, useState } from "react";
import compareVersions from "compare-versions";
import ReactDOM from "react-dom";
import Turndown from "turndown";
const turndownPluginGfm = require('turndown-plugin-gfm')
import { gfm } from "turndown-plugin-gfm";
import { Readability } from "@mozilla/readability";

import Button from "@mui/material/Button";
Expand Down Expand Up @@ -173,7 +173,7 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {

const turndown = new Turndown(TurndownConfiguration);

turndown.use(turndownPluginGfm.gfm);
turndown.use(gfm);

useEffect(() => {
if (
Expand Down

0 comments on commit 492b6e0

Please sign in to comment.