-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed disallowedElementsMarkdown #555
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import MDEditor, { PreviewType } from "@uiw/react-md-editor"; | ||
import { disallowedElementsMarkdown } from "constants/constants"; | ||
import { allowedElementsMarkdown } from "constants/constants"; | ||
import { forwardRef } from "react"; | ||
import { parseIsDirty } from "../utils"; | ||
import { StyledFormMDEditor } from "./styles"; | ||
|
@@ -37,7 +37,7 @@ export const FormMDEditorComponent = ( | |
> | ||
<MDEditor | ||
value={value} | ||
previewOptions={{ disallowedElements: disallowedElementsMarkdown }} | ||
previewOptions={{ allowedElements: allowedElementsMarkdown }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The - previewOptions={{ disallowedElements: disallowedElementsMarkdown }}
+ previewOptions={{ allowedElements: allowedElementsMarkdown }} |
||
onChange={(value) => (disabled ? undefined : onChange(value ?? ""))} | ||
minHeight={200} | ||
height={400} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeRabbit
The import statement has been changed from
disallowedElementsMarkdown
toallowedElementsMarkdown
. Ensure that theallowedElementsMarkdown
constant is correctly defined and contains all the necessary elements that should be allowed in the markdown editor. If it doesn't, you might face issues with rendering certain elements in the preview.