Skip to content

Commit f8b719f

Browse files
style: Don't convert single \n to <br> (#3414)
* Update development instructions * Don't convert single \n to <br> * Add changeset * Update .changeset/olive-mice-hide.md --------- Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
1 parent f2a6b39 commit f8b719f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/olive-mice-hide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'graphiql': patch
3+
'@graphiql/react': patch
4+
---
5+
6+
Respect Markdown format: ignore single newline
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)