|
1 | | -# Project1 |
2 | 1 |
|
3 | | -`react-markdown` is a markdown component for React. |
| 2 | +### [某某公司](https://www.baidu.com/) |
4 | 3 |
|
5 | | -👉 Changes are re-rendered as you type. |
| 4 | + 工作时间: 2021/03 - Present |
6 | 5 |
|
7 | | -👈 Try writing some markdown on the left. |
| 6 | + 职位: 前端开发 |
8 | 7 |
|
9 | | -## Overview |
| 8 | + 职责: 请问请问其二请问请问切勿去而且为去 |
10 | 9 |
|
11 | | -* Follows [CommonMark](https://commonmark.org) |
12 | | -* Optionally follows [GitHub Flavored Markdown](https://github.github.com/gfm/) |
13 | | -* Renders actual React elements instead of using `dangerouslySetInnerHTML` |
14 | | -* Lets you define your own components (to render `MyHeading` instead of `h1`) |
15 | | -* Has a lot of plugins |
| 10 | +### [某某公司](https://www.baidu.com/) |
16 | 11 |
|
17 | | -## Table of contents |
| 12 | + 工作时间: 2020/12 - 2021/03 |
18 | 13 |
|
19 | | -Here is an example of a plugin in action |
20 | | -([`remark-toc`](https://github.com/remarkjs/remark-toc)). |
21 | | -This section is replaced by an actual table of contents. |
| 14 | + 职位: 前端开发 |
22 | 15 |
|
23 | | -## Syntax highlighting |
| 16 | + 职责: 请问请问其二请问请问切勿去而且为去 |
| 17 | +### [某某公司](https://www.baidu.com/) |
24 | 18 |
|
25 | | -Here is an example of a plugin to highlight code: |
26 | | -[`rehype-highlight`](https://github.com/rehypejs/rehype-highlight). |
| 19 | + 工作时间: 2019/06 - 2020/12 |
27 | 20 |
|
28 | | -```js |
29 | | -import React from 'react' |
30 | | -import ReactDOM from 'react-dom' |
31 | | -import ReactMarkdown from 'react-markdown' |
32 | | -import rehypeHighlight from 'rehype-highlight' |
| 21 | + 职位: 前端开发 |
33 | 22 |
|
34 | | -ReactDOM.render( |
35 | | - <ReactMarkdown rehypePlugins={[rehypeHighlight]}>{'# Your markdown here'}</ReactMarkdown>, |
36 | | - document.querySelector('#content') |
37 | | -) |
38 | | -``` |
| 23 | + 职责: 请问请问其二请问请问切勿去而且为去 |
39 | 24 |
|
40 | | -Pretty neat, eh? |
41 | | - |
42 | | -## GitHub flavored markdown (GFM11111111111) |
43 | | - |
44 | | -For GFM, you can *also* use a plugin: |
45 | | -[`remark-gfm`](https://github.com/remarkjs/react-markdown#use). |
46 | | -It adds support for GitHub-specific extensions to the language: |
47 | | -tables, strikethrough, tasklists, and literal URLs. |
48 | | - |
49 | | -These features **do not work by default**. |
50 | | -👆 Use the toggle above to add the plugin. |
51 | | - |
52 | | -| Feature | Support | |
53 | | -| ---------: | :------------------- | |
54 | | -| CommonMark | 100% | |
55 | | -| GFM | 100% w/ `remark-gfm` | |
56 | | - |
57 | | -~~strikethrough~~ |
58 | | - |
59 | | -* [ ] task list |
60 | | -* [x] checked item |
61 | | - |
62 | | -https://example.com |
63 | | - |
64 | | -## HTML in markdown |
65 | | - |
66 | | -⚠️ HTML in markdown is quite unsafe, but if you want to support it, you can |
67 | | -use [`rehype-raw`](https://github.com/rehypejs/rehype-raw). |
68 | | -You should probably combine it with |
69 | | -[`rehype-sanitize`](https://github.com/rehypejs/rehype-sanitize). |
70 | | - |
71 | | -<blockquote> |
72 | | - 👆 Use the toggle above to add the plugin. |
73 | | -</blockquote> |
0 commit comments