Skip to content

Commit

Permalink
released v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 5, 2023
1 parent 7a419c9 commit 25b047f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/README.md
Expand Up @@ -21,7 +21,7 @@ npm i react-keywords

## Basic Usage

```jsx
```jsx mdx:preview
import React from 'react';
import Keywords from 'react-keywords';

Expand Down
2 changes: 1 addition & 1 deletion core/package.json
@@ -1,6 +1,6 @@
{
"name": "react-keywords",
"version": "0.0.5",
"version": "1.0.0",
"description": "Highlight a keyword in a piece of text and return a React element.",
"homepage": "https://uiwjs.github.io/react-keywords/",
"author": "kenny wang <wowohoo@qq.com>",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
@@ -1,4 +1,4 @@
{
"version": "0.0.5",
"version": "1.0.0",
"packages": ["core", "www"]
}
8 changes: 4 additions & 4 deletions www/package.json
@@ -1,6 +1,6 @@
{
"name": "www",
"version": "0.0.5",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "kkt build",
Expand All @@ -23,11 +23,11 @@
"@uiw/react-shields": "~1.1.3",
"@uiw/reset.css": "~1.0.6",
"@wcj/dark-mode": "~1.0.15",
"goober": "^2.1.13",
"react": "~18.2.0",
"react-code-preview-layout": "^3.0.0",
"react-code-preview-layout": "^3.0.2",
"react-dom": "~18.2.0",
"react-keywords": "0.0.5",
"goober": "^2.1.13"
"react-keywords": "1.0.0"
},
"eslintConfig": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion www/src/Markdown.tsx
Expand Up @@ -33,7 +33,7 @@ const CodePreview: CodeComponent | ReactMarkdownNames = ({ inline, node, ...prop
const param = getURLParameters(meta);
return (
<CodeLayout disableCheckered style={{ marginBottom: 18 }}>
<Preview style={{ whiteSpace: 'pre-wrap' }}>
<Preview>
<Child />
</Preview>
<Toolbar text={code}>{param.title || 'Example'}</Toolbar>
Expand Down

0 comments on commit 25b047f

Please sign in to comment.