summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2017-10-29 20:47:06 +0000
committerMatthew Hodgson <matthew@matrix.org>2017-10-29 20:47:17 +0000
commite51c2bcaef4b15a1e24a31b7edbfefbf93b7c425 (patch)
tree7afa4e1d6300419342db5f16aa551b09f47dcb36 /docs
parentMerge pull request #2599 from matrix-org/erikj/groups_invite (diff)
downloadsynapse-e51c2bcaef4b15a1e24a31b7edbfefbf93b7c425.tar.xz
move url_previews to MD as RST does my head in
Diffstat (limited to 'docs')
-rw-r--r--docs/url_previews.md (renamed from docs/url_previews.rst)2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/url_previews.rst b/docs/url_previews.md
index 634d9d907f..665554e165 100644
--- a/docs/url_previews.rst
+++ b/docs/url_previews.md
@@ -56,6 +56,7 @@ As a first cut, let's do #2 and have the receiver hit the API to calculate its o
 API
 ---
 
+```
 GET /_matrix/media/r0/preview_url?url=http://wherever.com
 200 OK
 {
@@ -66,6 +67,7 @@ GET /_matrix/media/r0/preview_url?url=http://wherever.com
     "og:description" : "“Synapse 0.12 is out! Lots of polishing, performance &amp;amp; bugfixes: /sync API, /r0 prefix, fulltext search, 3PID invites https://t.co/5alhXLLEGP”"
     "og:site_name"   : "Twitter"
 }
+```
 
 * Downloads the URL
   * If HTML, just stores it in RAM and parses it for OG meta tags