Skip to content

Commit dfca462

Browse files
committed
fix: add missing styles and type stub for RichEditor
1 parent 8ca08a5 commit dfca462

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react'
2+
import ProMdxEditor from './index'
3+
4+
export default {
5+
title: 'stateless/MdxEditor',
6+
component: ProMdxEditor,
7+
}
8+
9+
export const Default = () => <ProMdxEditor />
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Minimal code highlight styles for MdxEditor */
2+
.mdx-code-block {
3+
padding: 0.5rem;
4+
border-radius: 6px;
5+
background: #0b1220;
6+
color: #e6eef8;
7+
}
8+
9+
/* allow highlight.js / lowlight tokens to show */
10+
pre code .hljs {
11+
background: transparent;
12+
color: inherit;
13+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const RichEditor: any
2+
export default RichEditor

0 commit comments

Comments
 (0)