Skip to content

Commit 681d9bb

Browse files
authored
Merge branch 'railwayapp:main' into main
2 parents e8c3169 + de7db1a commit 681d9bb

52 files changed

Lines changed: 3910 additions & 247 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/components/CodeBlock/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface Props {
3939
className?: string;
4040
children?: any;
4141
colorModeSSR?: string | null;
42+
customStyle?: React.CSSProperties;
4243
}
4344

4445
const getParams = (
@@ -72,6 +73,7 @@ export const CodeBlock: React.FC<Props> = ({
7273
className = children.props ? children.props.className : "",
7374
language,
7475
colorModeSSR,
76+
customStyle,
7577
}) => {
7678
const [copied, copy] = useCopy();
7779
const [isLanguageReady, setIsLanguageReady] = useState(false);
@@ -124,6 +126,7 @@ export const CodeBlock: React.FC<Props> = ({
124126
language={effectiveLang}
125127
style={theme}
126128
data-colormode={colorMode}
129+
customStyle={customStyle}
127130
>
128131
{content}
129132
</SyntaxHighlighter>

0 commit comments

Comments
 (0)