Skip to content

Commit 6be4497

Browse files
committed
feat(theme/style): keep the <table> html style be consistent with markdown syntax and .rp-not-doc escape hatch (#2579)
1 parent 4e42e71 commit 6be4497

6 files changed

Lines changed: 2 additions & 94 deletions

File tree

packages/theme-default/src/components/Overview/OverviewGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const OverviewGroup = ({ group }: { group: Group }) => {
1818
return (
1919
<>
2020
<H2 {...renderInlineMarkdown(group.name)} />
21-
<div className="rp-overviewGroup">
21+
<div className="rp-overviewGroup rp-not-doc">
2222
{group.items.map(item => (
2323
<div className="rp-overviewGroup__item" key={item.link}>
2424
<div className="rp-overviewGroup__item__title">

packages/theme-default/src/components/Overview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export function Overview(props: {
249249
const overviewTitle = title || 'Overview';
250250

251251
return (
252-
<div className="rspress-overview rp-mx-auto">
252+
<div className="rspress-doc rspress-overview rp-mx-auto">
253253
<H1>{overviewTitle}</H1>
254254
<OverviewSearchInput
255255
query={query}

packages/theme-default/src/layout/DocLayout/docComponents/hr.module.scss

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/theme-default/src/layout/DocLayout/docComponents/paragraph.module.scss

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/theme-default/src/layout/DocLayout/docComponents/title.module.scss

Lines changed: 0 additions & 68 deletions
This file was deleted.

packages/theme-default/src/styles/doc.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@
300300
}
301301

302302
/* Dark mode styles */
303-
:where(.rp-dark) .rspress-doc,
304303
:where(.rp-dark) .rp-doc {
305304
:not(:where(.rp-not-doc, .rp-not-doc *)) {
306305
/* table */

0 commit comments

Comments
 (0)