Skip to content

Commit

Permalink
Preview Plain Text for Unrecognized Languages
Browse files Browse the repository at this point in the history
  • Loading branch information
guneskaan authored and Rokt33r committed Dec 14, 2020
1 parent 7effa59 commit cf010b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/atoms/MarkdownPreviewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ function rehypeCodeMirrorAttacher(options: Partial<RehypeCodeMirrorOptions>) {
})
} else if (!ignoreMissing) {
throw new Error(`Unknown language: \`${lang}\` is not registered`)
} else {
return;
}
}

Expand Down

0 comments on commit cf010b9

Please sign in to comment.