Version 0.3.1 (2025-06-04)
Key Changes:
- Fixed Markdown Rendering with Trusted Types:
- Resolved an issue where Markdown formatting in summaries might not render correctly on YouTube pages enforcing the Trusted Types security policy. This was causing errors like "This document requires 'TrustedHTML' assignment."
- Implemented a TrustedHTML policy within the script. This allows the parsed Markdown (HTML) to be safely inserted into the summary display area, ensuring that lists, bold text, etc., are shown as intended.
- Improved Handling of Trusted Types API:
- Enhanced the logic to detect if Trusted Types are actively enforced by the browser, providing a more robust fallback to plain text rendering if a TrustedHTML policy cannot be successfully applied.
- ESLint Global Definition:
- Added
/* global marked */
directive to satisfy ESLint and prevent warnings about the marked
library being undefined (this is primarily a development/code quality improvement).
- Minor Code Refinements:
- Small adjustments to logging and policy naming for clarity.
This version primarily focuses on ensuring that Markdown formatting works reliably across different browser security configurations, especially those with stricter content security policies like Trusted Types.