Skip to content

Commit d3e9522

Browse files
authored
Update Example in README.md (#51)
1 parent 752dda9 commit d3e9522

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ go get github.com/JohannesKaufmann/html-to-markdown
1818
## Usage
1919

2020
```go
21-
import md "github.com/JohannesKaufmann/html-to-markdown"
21+
import (
22+
"fmt"
23+
"log"
24+
25+
md "github.com/JohannesKaufmann/html-to-markdown"
26+
)
2227

2328
converter := md.NewConverter("", true, nil)
2429

25-
html = `<strong>Important</strong>`
30+
html := `<strong>Important</strong>`
2631

2732
markdown, err := converter.ConvertString(html)
2833
if err != nil {

0 commit comments

Comments
 (0)