Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for rendering multiple examples in markdown #35

Merged
merged 1 commit into from Jul 12, 2022

Conversation

simonguo
Copy link
Owner

markdown file


### First example

<!--start-code-->

```js
// example.md

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'rsuite';

const App = () => {
  return <Button>First example</Button>;
};

ReactDOM.render(<App />);
```

<!--end-code-->

### Second example

<!--start-code-->

```js
ReactDOM.render(<Button>Second example</Button>);
```

<!--end-code-->

> Note: You can try changing the code above and see what changes.

after rendering

image

@simonguo simonguo merged commit d021789 into master Jul 12, 2022
@simonguo simonguo deleted the feat/multiple-examples branch July 12, 2022 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant