Skip to content

Conversation

@jfernandez
Copy link
Owner

HTML tags were being escaped instead of rendered due to the markdown library's default security settings. This commit:

  • Consolidates markdown conversion logic to eliminate duplication
  • Enables allow_dangerous_html option for proper HTML rendering
  • Adds test coverage for HTML tag rendering behavior

HTML tags were being escaped instead of rendered due to the markdown
library's default security settings. This commit:

- Consolidates markdown conversion logic to eliminate duplication
- Enables allow_dangerous_html option for proper HTML rendering
- Adds test coverage for HTML tag rendering behavior
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables HTML tag rendering in markdown files by configuring the markdown parser to allow dangerous HTML instead of escaping it by default. The changes consolidate markdown conversion logic and add comprehensive test coverage.

  • Consolidates duplicate markdown conversion code into a single method
  • Enables allow_dangerous_html option in markdown parser configuration
  • Adds integration test to verify HTML tags are rendered rather than escaped

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/app.rs Refactors markdown conversion to use centralized method with HTML rendering enabled
tests/integration_test.rs Adds comprehensive test coverage for HTML tag rendering behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jfernandez jfernandez merged commit 4e9e2d6 into main Sep 24, 2025
5 checks passed
@jfernandez jfernandez deleted the html-tag-support branch September 24, 2025 03:04
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