File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
app/views/applications/messages/message/parts Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,13 @@ export const preparse = (str: string) => {
66 //Prevent html security issues
77 . replace ( / & / g, '&' )
88 . replace ( / < / g, '<' )
9- . replace ( / > / g, '>' )
109 //Prepare mentions
1110 . replace ( / ( [ \t ] | ^ ) @ ( [ \w ] + ) / g, '$1<user id="$2"/>' )
1211 . replace ( / ( [ \t ] | ^ ) # ( [ \w ] + ) / g, '$1<channel id="$2"/>' )
12+ //Prepare code
13+ . replace ( / [ ^ \n ] \r ? \n { 1 } ` { 3 } / , '\n\n```' )
14+ // prepare quote
15+ . replace ( / ^ ( > { 1 } ) ( [ ^ > ] * ) \n ( .* ) / gm, '> $2\n\n$3' )
1316 ) ;
1417} ;
1518
Original file line number Diff line number Diff line change @@ -22,3 +22,10 @@ input.ant-input {
2222a {
2323 color : var (--primary ) !important ;
2424}
25+
26+ @layer base {
27+ ul , ol {
28+ list-style : revert;
29+ padding : revert;
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments