From f25458196e838728cef17303d5768f744dc75d36 Mon Sep 17 00:00:00 2001 From: "tina-cloud-app[bot]" <58178390+tina-cloud-app[bot]@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:38:48 +1100 Subject: [PATCH] docs line-break (PR from TinaCMS) (#2670) Co-authored-by: Matt Wicks Co-authored-by: tina-cloud-app[bot] <58178390+tina-cloud-app[bot]@users.noreply.github.com> --- content/docs/reference/types/rich-text.mdx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/content/docs/reference/types/rich-text.mdx b/content/docs/reference/types/rich-text.mdx index 6167b57cd..73c2eef1b 100644 --- a/content/docs/reference/types/rich-text.mdx +++ b/content/docs/reference/types/rich-text.mdx @@ -1,6 +1,6 @@ --- title: The "rich-text" field -last_edited: '2024-12-02T06:05:59.753Z' +last_edited: '2024-12-31T02:27:57.931Z' next: '' previous: '' --- @@ -156,6 +156,17 @@ Results in the following response from the content API: preselectResponse={true} /> +### Line Breaks + +To insert a line break into an empty line in TinaCMS Rich Text: + +* Press Shift + Enter to create the line break +* If the line break is not followed by a line with text, it will render as a \ in the final output.\ + This can be fixed by deleting and re-creating the line\ + Ensure that the line break precedes text content to avoid this issue + +Note: This behavior is not part of the standard Markdown specification but is specific to TinaCMS Rich Text implementation. + ### Using Table Check out how to use Table in rich text editor @@ -222,7 +233,9 @@ Within table cells, support is limited to inline elements only. The following ty * Quote * Headings -If you try to add these types into a table cell, they will be treated as a string.![](/img/docs/rich-text/cells-1.png)**❌ Figure: Bad example - A table with block elements treated as strings**![supported-table-cell-formats](/img/docs/rich-text/cells-2.png)**✅ Figure: Good example - A table with inline elements** +If you try to add these types into a table cell, they will be treated as a string.![](/img/docs/rich-text/cells-1.png)**❌ Figure: Bad example - A table with block elements treated as strings**\ +\ +![supported-table-cell-formats](/img/docs/rich-text/cells-2.png)**✅ Figure: Good example - A table with inline elements** ### Automatic transforms