Skip to content

Commit

Permalink
doc: Update document. (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 21, 2023
1 parent 83548f4 commit fe4e50a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/README.md
Expand Up @@ -81,6 +81,8 @@ export default function Demo() {

syntax: <code>```jsx {1,4-5}</code>

⚠️ The `highlight line` and `Show Line Numbers` feature are invalid and require ~~`rehype-prism-plus@1.6.3`~~ upgrade.

```jsx mdx:preview
import React from 'react';
import MarkdownPreview from '@uiw/react-markdown-preview';
Expand Down Expand Up @@ -116,6 +118,8 @@ export default function Demo() {

syntax: <code>```jsx showLineNumbers {1,4-5}</code>

⚠️ The `highlight line` and `Show Line Numbers` feature are invalid and require ~~`rehype-prism-plus@1.6.3`~~ upgrade.

```jsx mdx:preview?background=#fff
import React from 'react';
import MarkdownPreview from '@uiw/react-markdown-preview';
Expand Down Expand Up @@ -182,12 +186,12 @@ import React from 'react';
import MarkdownPreview from '@uiw/react-markdown-preview/nohighlight';

const source = `
\`\`\`js showLineNumbers
\`\`\`js
function () {
console.log('hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello')
}
\`\`\`
\`\`\`js showLineNumbers {2}
\`\`\`js
function () {
console.log('hello ')
}
Expand Down

0 comments on commit fe4e50a

Please sign in to comment.