@@ -4,6 +4,7 @@ import dayjs from "dayjs";
44import ReactMarkdown from 'react-markdown' ;
55import MdEditor from 'react-markdown-editor-lite' ;
66import remarkGfm from 'remark-gfm' ;
7+ import remarkIns from 'remark-ins' ;
78import { Dic , MDDecsPlugins , MDUpdatePlugins } from "~/Helpers/Entities" ;
89import { Models } from "~/Services/Status.Models" ;
910import { EventStatus , EventType , GetStatusList , IsIncident , IsOpenStatus } from "./Enums" ;
@@ -122,7 +123,7 @@ export function EventEditor({ Event }: { Event: Models.IEvent }) {
122123 < label className = "text-sm font-medium text-gray-700" > Description</ label >
123124 < MdEditor
124125 placeholder = "Optional description for the event"
125- renderHTML = { ( text ) => < ReactMarkdown remarkPlugins = { [ remarkGfm ] } > { text } </ ReactMarkdown > }
126+ renderHTML = { ( text ) => < ReactMarkdown remarkPlugins = { [ remarkGfm , remarkIns ] } > { text } </ ReactMarkdown > }
126127 value = { State . description }
127128 onChange = { ( { text } ) => Actions . setDescription ( text ) }
128129 plugins = { MDDecsPlugins }
@@ -143,7 +144,7 @@ export function EventEditor({ Event }: { Event: Models.IEvent }) {
143144 < label className = "text-sm font-medium text-gray-700" > Update Message</ label >
144145 < MdEditor
145146 placeholder = "Message detailing the updates"
146- renderHTML = { ( text ) => < ReactMarkdown remarkPlugins = { [ remarkGfm ] } > { text } </ ReactMarkdown > }
147+ renderHTML = { ( text ) => < ReactMarkdown remarkPlugins = { [ remarkGfm , remarkIns ] } > { text } </ ReactMarkdown > }
147148 value = { State . update }
148149 onChange = { ( { text } ) => Actions . setUpdate ( text ) }
149150 plugins = { MDUpdatePlugins }
0 commit comments