Skip to content

Commit

Permalink
Fjern github-flavored-markdown (gfm)
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd committed Sep 3, 2024
1 parent c202028 commit 2c927c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/view/melding/Melding.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { ExternalLinkIcon, PersonIcon } from '@navikt/aksel-icons';
import { BodyShort, Chat, HStack, VStack } from '@navikt/ds-react';
import { BodyShort, Chat } from '@navikt/ds-react';
import React from 'react';

import { ViktigMelding } from '../../felleskomponenter/etiketer/Etikett';
import { formaterDateAndTime } from '../../utils/Date';
import { MeldingsData } from '../../utils/Typer';
import { useUserInfoContext } from '../BrukerProvider';
import Markdown from 'react-markdown';
import remarkGfm from 'remark-gfm';

function accessibleText(erBruker: boolean, erMeldingFraBruker: boolean) {
if (erMeldingFraBruker) {
Expand Down Expand Up @@ -59,7 +58,6 @@ export function Melding(props: Props) {
)
}}
disallowedElements={['script']}
remarkPlugins={[remarkGfm]}
>
{tekst}
</Markdown>
Expand Down

0 comments on commit 2c927c8

Please sign in to comment.