Skip to content

Commit

Permalink
add isomorphic DOMPurify package
Browse files Browse the repository at this point in the history
  • Loading branch information
agola11 committed Apr 23, 2024
1 parent 52779dd commit edcc815
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@supabase/supabase-js": "^2.39.7",
"clsx": "^1.2.1",
"dompurify": "^3.1.0",
"isomorphic-dompurify": "^2.7.0",
"json-loader": "^0.5.7",
"marked": "^12.0.1",
"process": "^0.11.10",
Expand Down
2 changes: 1 addition & 1 deletion src/components/InstructionsWithCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import CodeBlock from "@theme/CodeBlock";
import { marked } from "marked";
import * as DOMPurify from "dompurify";
import DOMPurify from "isomorphic-dompurify";

export function LangChainPyBlock(content) {
return {
Expand Down
Loading

0 comments on commit edcc815

Please sign in to comment.