Skip to content

Conversation

@SoonIter
Copy link
Member

Summary

cherry picking #2579

Related Issue

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings September 11, 2025 09:19
@netlify
Copy link

netlify bot commented Sep 11, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 0cc7dcc
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/68c3bc70f8558b0008a76fdb
😎 Deploy Preview https://deploy-preview-2583--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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 implements consistent styling for HTML elements in markdown by adding a new .rspress-doc stylesheet that applies default styles to tables and lists while providing an escape hatch mechanism through the .rp-not-doc class.

  • Adds comprehensive styling for HTML table and list elements to match markdown syntax appearance
  • Introduces the .rp-not-doc escape hatch class to disable the default styling when needed
  • Updates preview and playground components to use the escape hatch to avoid unwanted styling

Reviewed Changes

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

Show a summary per file
File Description
packages/theme-default/src/styles/index.ts Imports the new doc.scss stylesheet
packages/theme-default/src/styles/doc.scss Defines comprehensive HTML element styling with escape hatch mechanism
packages/plugin-preview/static/global-components/Container.tsx Adds rp-not-doc class to preview container
packages/plugin-playground/static/global-components/Playground.tsx Adds rp-not-doc class to playground container
e2e/fixtures/auto-nav-sidebar/doc/guide/index.mdx Adds test content demonstrating styled and unstyled elements

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

@SoonIter SoonIter marked this pull request as draft September 11, 2025 09:58
@SoonIter SoonIter force-pushed the syt/v1-cherry-picking branch from f0c44a0 to 0cc7dcc Compare September 12, 2025 06:23
@SoonIter SoonIter closed this Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants