fixing style and solving merge conflicts

This commit is contained in:
Vladyslav Matsiiako
2023-07-11 16:19:07 -07:00
parent 46dc357651
commit 0cf63028df
7 changed files with 375 additions and 5 deletions
@@ -7,6 +7,10 @@ const REGEX = /([$]{.*?})/g;
export const useSyntaxHighlight = () => {
const syntaxHighlight = useCallback((text: string, isHidden?: boolean) => {
if (isHidden) {
if (!text) {
return "EMPTY";
}
return text
.split("")
.slice(0, 200)