Skip to content

Render markdown into HTML, url input validation - #3

Merged
TristanCacqueray merged 1 commit into
mainfrom
markdown_render
Sep 17, 2025
Merged

TristanCacqueray merged 1 commit into
mainfrom
markdown_render

Conversation

@nikitabugrovsky

@nikitabugrovsky nikitabugrovsky commented Sep 16, 2025 •

Copy link
Copy Markdown
Contributor

The client-side JavaScript has been updated to correctly render Markdown content streamed from the server.

Previously, Markdown was displayed as raw text. The showChunk function now uses marked.parse() to convert incoming chunks to HTML and updates the view using innerHTML, ensuring that formatted text, lists, and code blocks are displayed correctly as they arrive.

Additionally Url input validation on the client side is implemented with new URL(url)

@TristanCacqueray
TristanCacqueray merged commit b53e04d into main Sep 17, 2025
2 checks passed
@TristanCacqueray
TristanCacqueray deleted the markdown_render branch September 17, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants