Skip to content

Commit

Permalink
Update remark-gfm and remove remark-emoji to deal with compat issues …
Browse files Browse the repository at this point in the history
…in the newer react-markdown

Fixed #1326
  • Loading branch information
obra committed Mar 4, 2024
1 parent 2dc9ca6 commit 9b8461f
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 493 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
"react-draggable": "^4.4.6",
"react-i18next": "^11.8.5",
"react-markdown": "^9.0.1",
"remark-emoji": "3.0.1",
"remark-gfm": "^3.0.1",
"remark-gfm": "^4.0.0",
"typeface-roboto": "^0.0.54",
"typeface-source-code-pro": "^0.0.71",
"uuid": "^8.3.1"
Expand Down
3 changes: 1 addition & 2 deletions src/renderer/screens/FirmwareUpdate/FirmwareChangesDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import DialogTitle from "@mui/material/DialogTitle";
import React from "react";
import { useTranslation } from "react-i18next";
import ReactMarkdown from "react-markdown";
import remarkEmoji from "remark-emoji";
import remarkGfm from "remark-gfm";

const FirmwareChangesDialog = (props) => {
Expand All @@ -42,7 +41,7 @@ const FirmwareChangesDialog = (props) => {
</Button>
</DialogTitle>
<DialogContent dividers>
<ReactMarkdown remarkPlugins={[remarkGfm, remarkEmoji]}>{props.changelog}</ReactMarkdown>
<ReactMarkdown remarkPlugins={[remarkGfm]}>{props.changelog}</ReactMarkdown>
</DialogContent>
<DialogActions>
<Button onClick={props.onClose}>{t("dialog.close")}</Button>
Expand Down
Loading

0 comments on commit 9b8461f

Please sign in to comment.