Skip to content

Commit

Permalink
readme: use fenced code blocks (russross#519)
Browse files Browse the repository at this point in the history
It's more consistent and it's possible to mark code blocks with "go" hint,
so we get syntax highlighting on GitHub.
  • Loading branch information
quasilyte authored and willdollman committed Feb 27, 2021
1 parent cf8f0b0 commit b72815a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b72815a

Please sign in to comment.