From 13768b07fa3897b3ea21738e6c0d7706737d20ad Mon Sep 17 00:00:00 2001 From: "Iskander (Alex) Sharipov" Date: Sun, 20 Jan 2019 18:42:03 +0000 Subject: [PATCH] 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. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3c62e13..ed91e73 100644 --- a/README.md +++ b/README.md @@ -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