Skip to content

Commit ce09e53

Browse files
leonardehrenfriedacao
authored andcommitted
Don't convert single \n to <br>
1 parent 687b28e commit ce09e53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import MarkdownIt from 'markdown-it';
22

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

0 commit comments

Comments
 (0)