Skip to content

Conversation

@Syrup
Copy link
Owner

@Syrup Syrup commented Nov 2, 2025

  • Remove .html extension from Vercel URLs
    • Add language labels to code blocks
    • Labels stay fixed when scrolling horizontally

… blocks

- Update vercel.json with rewrites to support clean URLs without .html
- Add language label to code blocks positioned at top-left corner
- Label stays fixed when scrolling code horizontally (sticky positioning)
- Style: transparent background, lowercase text, subtle gray color
- Support both light and dark mode
Copilot AI review requested due to automatic review settings November 2, 2025 12:30
@vercel
Copy link

vercel bot commented Nov 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
markdown-it-template Ready Ready Preview Comment Nov 2, 2025 1:01pm

Copy link
Contributor

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 enhances the markdown code block rendering by adding language labels to code blocks and configures URL handling for Vercel deployment.

  • Adds visual language labels to syntax-highlighted code blocks
  • Configures Vercel to use clean URLs without .html extensions
  • Styles the language labels for both light and dark themes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
index.js Updates code block HTML generation to include language label spans and data attributes
public/style.css Adds styling for .code-lang labels with positioning, sizing, and theme support
vercel.json Configures clean URLs, trailing slash behavior, and rewrites for HTML file routing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 2, 2025 12:33
Syrup and others added 3 commits November 2, 2025 19:34
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Create helpers/highlight.js for shared highlight logic
- Remove duplicate code from index.js and cli/build.js
- Follows DRY principle for better maintainability
- Create mdUtils instance to access escapeHtml independently
- Fixes build error where md parameter was undefined
- Removes md parameter from highlightCode function signature
Copilot AI review requested due to automatic review settings November 2, 2025 12:55
Copy link
Contributor

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 2, 2025 13:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Syrup Syrup requested a review from Copilot November 2, 2025 13:22
@Syrup Syrup self-assigned this Nov 2, 2025
Copy link
Contributor

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Syrup Syrup merged commit b5bf95d into main Nov 2, 2025
9 checks passed
@Syrup Syrup deleted the fix/clean-urls-and-code-labels branch November 2, 2025 13:25
Syrup added a commit that referenced this pull request Nov 2, 2025
…els"

This reverts commit b5bf95d, reversing
changes made to 122d323.
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