File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
packages/theme-default/src/components Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export function Badge({
5252
5353 return (
5454 < span
55- className = { `rp-inline-flex rp-items-center rp-justify-center rp-rounded-full rp-border rp-border-solid ${
55+ className = { `rp-not-doc rp- inline-flex rp-items-center rp-justify-center rp-rounded-full rp-border rp-border-solid ${
5656 outline ? 'rp-border-current' : 'rp-border-transparent'
5757 } rp-font-semibold rp-align-middle rp-px-2.5 rp-h-6 rp-gap-1 rp-text-xs ${ styles . badge } ${ styles [ type ] } ${
5858 outline ? styles . outline : ''
Original file line number Diff line number Diff line change 11import { useLocaleSiteData } from '@rspress/runtime' ;
2- import { Link } from '@theme' ;
2+ import { Link , renderInlineMarkdown } from '@theme' ;
33import * as styles from './index.module.scss' ;
44
55interface PrevNextPageProps {
@@ -19,7 +19,7 @@ export function PrevNextPage(props: PrevNextPageProps) {
1919 return (
2020 < Link href = { href } className = { linkClassName } >
2121 < span className = { styles . desc } > { pageText } </ span >
22- < span className = { styles . title } > { text } </ span >
22+ < span className = { styles . title } { ... renderInlineMarkdown ( text ) } / >
2323 </ Link >
2424 ) ;
2525}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export function SourceCode(props: SourceCodeProps) {
1414 const { sourceCodeText = 'Source' } = useLocaleSiteData ( ) ;
1515 return (
1616 < div
17- className = { `rp-inline-block rp-rounded rp-border rp-border-solid rp-border-gray-light-3 dark:rp-border-divider rp-text-gray-400 ${ styles . sourceCode } ` }
17+ className = { `rp-not-doc rp- inline-block rp-rounded rp-border rp-border-solid rp-border-gray-light-3 dark:rp-border-divider rp-text-gray-400 ${ styles . sourceCode } ` }
1818 >
1919 < a
2020 href = { href }
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export function Toc({
4040 const headers = useDynamicToc ( ) ;
4141 return (
4242 headers . length > 0 && (
43- < ul >
43+ < ul className = "rp-not-doc" >
4444 { headers . map ( item => (
4545 < TocItem key = { item . id } header = { item } onItemClick = { onItemClick } />
4646 ) ) }
You can’t perform that action at this time.
0 commit comments