Skip to content

Commit

Permalink
Fixes gr.Markdown() does not render spaces around links correctly (#7361
Browse files Browse the repository at this point in the history
)

* fix

* remove console

* add changeset

* fix

* storybook

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
  • Loading branch information
3 people authored Feb 11, 2024
1 parent bb4126c commit 17fb116
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/chatty-lizards-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/markdown": patch
"gradio": patch
---

fix:Fixes gr.Markdown() does not render spaces around links correctly
8 changes: 8 additions & 0 deletions js/markdown/Markdown.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ in two separate lines.`
latex_delimiters: [{ left: "$", right: "$", display: false }]
}}
/>

<Story
name="Markdown with header links"
args={{
value: "# Visit [Gradio](https://gradio.app) for more information",
header_links: true
}}
/>
1 change: 1 addition & 0 deletions js/markdown/shared/MarkdownCode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,6 @@
span :global(h6) {
display: flex;
align-items: center;
white-space-collapse: break-spaces;
}
</style>

0 comments on commit 17fb116

Please sign in to comment.