react-shiki 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -52,9 +52,10 @@ function CodeBlock() {
|
|
|
52
52
|
The component accepts several props in addition to language and theme:
|
|
53
53
|
|
|
54
54
|
- `showLanguage: boolean` - Shows the language name in the top right corner of the code block.
|
|
55
|
-
- `
|
|
55
|
+
- `addDefaultStyles`: boolean - Adds default styles (padding, overflow handling, and border-radius) to the code block.
|
|
56
56
|
- `as: string` - The component to be rendered. Defaults to 'pre'.
|
|
57
57
|
- `className: string` - Class name to be passed to the component.
|
|
58
|
+
- `style: object` - Style object to be passed to the component.
|
|
58
59
|
|
|
59
60
|
```tsx
|
|
60
61
|
function Houston() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-shiki",
|
|
3
3
|
"description": "Syntax highlighter component for react using shiki",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bassim Shahidy",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"directory": "package",
|
|
14
|
-
"url": "https://github.com/avgvstvs96/react-shiki"
|
|
14
|
+
"url": "git+https://github.com/avgvstvs96/react-shiki.git"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://react-shiki.vercel.app/",
|
|
17
17
|
"keywords": [
|