From: Mariatta <Mariatta@users.noreply.github.com>
Date: Fri, 15 Jun 2018 22:12:16 +0000 (-0700)
Subject: Add code snippet for using black badge in .rst (#356)
X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/af8fd24068098331c7d5333e00d1511b157e94f0

Add code snippet for using black badge in .rst (#356)
---

diff --git a/README.md b/README.md
index 11c3d44..0d0c788 100644
--- a/README.md
+++ b/README.md
@@ -780,6 +780,12 @@ Use the badge in your project's README.md:
 [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
 ```
 
+Using the badge in README.rst:
+```
+.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+    :target: https://github.com/ambv/black
+```    
+
 Looks like this: [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)