Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 19, 2021
1 parent 8a3aed2 commit d84d37a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ console.log('')

### `Links`

###### `HTML Example`

```html
<a href="https://github.com">github</a><!--rehype:rel=external-->
```
Expand All @@ -45,7 +47,7 @@ const htmlStr = rehype()
</details>

<br />
###### `Markdown Example`

```markdown
[github](https://github.com)<!--rehype:rel=external-->
Expand Down Expand Up @@ -87,7 +89,7 @@ const htmlStr = unified()

### `Header`

#### `HTML Example`
###### `HTML Example`

```html
<h1>This is a title</h1><!--rehype:style=color:pink;-->
Expand All @@ -114,7 +116,7 @@ const htmlStr = rehype()
</details>

#### `Markdown Example`
###### `Markdown Example`

```markdown
This is a title
Expand All @@ -139,7 +141,7 @@ This is a title
### `Strong`
#### `HTML Example`
###### `HTML Example`
```html
This is a <strong>Unicorn</strong><!--rehype:style=color: grey-->
Expand All @@ -150,7 +152,7 @@ This is a <strong>Unicorn</strong><!--rehype:style=color: grey-->
> This is a <strong style="color: grey">Unicorn</strong>
> ```
#### `Markdown Example`
###### `Markdown Example`
```markdown
This is a **Unicorn**<!--rehype:style=color: grey-->
Expand All @@ -163,7 +165,7 @@ This is a **Unicorn**<!--rehype:style=color: grey-->
### `Emphasis`
#### `HTML Example`
###### `HTML Example`
```html
Npm stand for <em>node</em><!--rehype:style=color: red--> packet manager.
Expand All @@ -174,7 +176,7 @@ Npm stand for <em>node</em><!--rehype:style=color: red--> packet manager.
> Npm stand for <em style="color: red">node</em> packet manager.
> ```
#### `Markdown Example`
###### `Markdown Example`
```markdown
Npm stand for *node* <!--rehype:style=color: red--> packet manager.
Expand Down Expand Up @@ -221,7 +223,7 @@ npm i rehype-attr
yarn add rehype-attr
```
### `HTML Example`
###### `HTML Example`

```js
const rehype = require('rehype')
Expand All @@ -239,7 +241,7 @@ Output:
<h1 style="color:pink;">This is a title</h1>
```

### `Markdown Example`
###### `Markdown Example`

```js
const unified = require("unified");
Expand Down

0 comments on commit d84d37a

Please sign in to comment.