mirror of
https://github.com/danog/blackfriday.git
synced 2024-12-02 09:27:49 +01:00
readme: use fenced code blocks (#519)
It's more consistent and it's possible to mark code blocks with "go" hint, so we get syntax highlighting on GitHub.
This commit is contained in:
parent
8c3eacd7a5
commit
13768b07fa
@ -86,12 +86,16 @@ Usage
|
||||
For basic usage, it is as simple as getting your input into a byte
|
||||
slice and calling:
|
||||
|
||||
output := blackfriday.MarkdownBasic(input)
|
||||
```go
|
||||
output := blackfriday.MarkdownBasic(input)
|
||||
```
|
||||
|
||||
This renders it with no extensions enabled. To get a more useful
|
||||
feature set, use this instead:
|
||||
|
||||
output := blackfriday.MarkdownCommon(input)
|
||||
```go
|
||||
output := blackfriday.MarkdownCommon(input)
|
||||
```
|
||||
|
||||
### v2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user