tweak readme.md

This commit is contained in:
Krzysztof Kowalczyk 2018-01-28 18:15:53 -08:00
parent d15ae8c51e
commit 43d4aa8553
1 changed files with 1 additions and 6 deletions

View File

@ -94,12 +94,7 @@ opts := html.RendererOptions{
RenderNodeHook: renderHookDropCodeBlock,
}
renderer := html.NewRenderer(opts)
md := `test
```
code block will be dropped from output
```
text`
md := "test\n```\nthis code block will be dropped from output\n```\ntext"
html := markdown.ToHTML([]byte(s), nil, renderer)
```