Fixed bug
This commit is contained in:
parent
3e1ebf74fd
commit
df92d97bfa
|
@ -26,12 +26,13 @@ export function Markdawn(props: Props): JSX.Element {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const [openLightBox, LightBox] = useLightBox();
|
const [openLightBox, LightBox] = useLightBox();
|
||||||
|
|
||||||
// eslint-disable-next-line no-irregular-whitespace
|
/* eslint-disable no-irregular-whitespace */
|
||||||
const text = useMemo(
|
const text = useMemo(
|
||||||
() => `${preprocessMarkDawn(rawText)}
|
() => `${preprocessMarkDawn(rawText)}
|
||||||
`,
|
`,
|
||||||
[rawText]
|
[rawText]
|
||||||
);
|
);
|
||||||
|
/* eslint-enable no-irregular-whitespace */
|
||||||
|
|
||||||
if (text) {
|
if (text) {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue