Skip to content

Commit

Permalink
Don't convert single \n to <br>
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried authored and acao committed Sep 26, 2023
1 parent 687b28e commit ce09e53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/graphiql-react/src/markdown.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import MarkdownIt from 'markdown-it';

export const markdown = new MarkdownIt({
breaks: true,
// we don't want to convert \n to <br> because in markdown a single newline is not a line break
// https://github.com/graphql/graphiql/issues/3155
breaks: false,
linkify: true,
});

0 comments on commit ce09e53

Please sign in to comment.