We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a6b39 commit f8b719fCopy full SHA for f8b719f
.changeset/olive-mice-hide.md
@@ -0,0 +1,6 @@
1
+---
2
+'graphiql': patch
3
+'@graphiql/react': patch
4
5
+
6
+Respect Markdown format: ignore single newline
packages/graphiql-react/src/markdown.ts
@@ -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,
7
linkify: true,
8
});
0 commit comments