diff --git a/doc/building-cmake.md b/doc/building-cmake.md
index c9dc2c079..3a9a68e6f 100644
--- a/doc/building-cmake.md
+++ b/doc/building-cmake.md
@@ -1,6 +1,6 @@
-##Build instructions for GYP/CMake under Ubuntu 12.04
+## Build instructions for GYP/CMake under Ubuntu 12.04
 
-###Prepare
+### Prepare
 
 * Install git by command **sudo apt-get install git** in Terminal
 * Install g++ by command **sudo apt-get install g++** in Terminal
@@ -13,29 +13,29 @@ You need to install g++ version 6 manually by such commands
 * sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60
 * sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 60
 
-###Prepare folder
+### Prepare folder
 
 Choose a folder for the future build, for example **/home/user/TBuild** There you will have two folders, **Libraries** for third-party libs and **tdesktop** (or **tdesktop-master**) for the app.
 
-###Clone source code
+### Clone source code
 
 By git – in Terminal go to **/home/user/TBuild** and run
 
     git clone --recursive https://github.com/telegramdesktop/tdesktop.git
 
-###Prepare libraries
+### Prepare libraries
 
 Install dev libraries
 
     sudo apt-get install libexif-dev liblzma-dev libz-dev libssl-dev libappindicator-dev libunity-dev libicu-dev libdee-dev
 
-####zlib 1.2.8
+#### zlib 1.2.8
 
 http://www.zlib.net/ > Download [**zlib source code, version 1.2.8, tarball format**](http://zlib.net/fossils/zlib-1.2.8.tar.gz)
 
 Extract to **/home/user/TBuild/Libraries**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/home/user/TBuild/Libraries/zlib-1.2.8** and run:
 
@@ -45,7 +45,7 @@ In Terminal go to **/home/user/TBuild/Libraries/zlib-1.2.8** and run:
 
 Install audio libraries
 
-####Opus codec 1.1
+#### Opus codec 1.1
 
 Download [opus-1.1 sources](http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz) from http://www.opus-codec.org/downloads, extract to **/home/user/TBuild/Libraries**, go to **/home/user/TBuild/Libraries/opus-1.1** and run
 
@@ -53,7 +53,7 @@ Download [opus-1.1 sources](http://downloads.xiph.org/releases/opus/opus-1.1.tar
     make
     sudo make install
 
-####FFmpeg
+#### FFmpeg
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -84,7 +84,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####PortAudio 19
+#### PortAudio 19
 
 [Download portaudio sources](http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz) from **http://www.portaudio.com/download.html**, extract to **/home/user/TBuild/Libraries**, go to **/home/user/TBuild/Libraries/portaudio** and run
 
@@ -92,7 +92,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####OpenAL Soft
+#### OpenAL Soft
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -105,7 +105,7 @@ then go to **/home/user/TBuild/Libraries/openal-soft/build** and run
     make
     sudo make install
 
-####OpenSSL
+#### OpenSSL
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -116,7 +116,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####libxkbcommon (required for Fcitx Qt plugin)
+#### libxkbcommon (required for Fcitx Qt plugin)
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -127,7 +127,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####Qt 5.6.2, slightly patched
+#### Qt 5.6.2, slightly patched
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -139,11 +139,11 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     cd qtimageformats && git checkout v5.6.2 && cd ..
     cd qtbase && git checkout v5.6.2 && cd ..
 
-#####Apply the patch
+##### Apply the patch
 
     cd qtbase && git apply ../../../tdesktop/Telegram/Patches/qtbase_5_6_2.diff && cd ..
 
-#####Building library
+##### Building library
 
 Install some packages for Qt (see **/home/user/TBuild/Libraries/qt5_6_2/qtbase/src/plugins/platforms/xcb/README**)
 
@@ -157,7 +157,7 @@ In Terminal go to **/home/user/TBuild/Libraries/qt5_6_2** and there run
 
 building (**make** command) will take really long time.
 
-####Google Breakpad
+#### Google Breakpad
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -168,7 +168,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     make install
 
-####GYP and CMake
+#### GYP and CMake
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -181,7 +181,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     ./configure
     make
 
-###Building Telegram Desktop
+### Building Telegram Desktop
 
 In Terminal go to **/home/user/TBuild/tdesktop/Telegram** and run
 
diff --git a/doc/building-qtcreator.md b/doc/building-qtcreator.md
index ff8a1154e..6d698b455 100644
--- a/doc/building-qtcreator.md
+++ b/doc/building-qtcreator.md
@@ -1,8 +1,8 @@
-##Build instructions for Qt Creator 3.5.1 under Ubuntu 12.04
+## Build instructions for Qt Creator 3.5.1 under Ubuntu 12.04
 
 **NB** These are outdated, please refer to [Building using GYP/CMake][cmake] instructions.
 
-###Prepare
+### Prepare
 
 * Install git by command **sudo apt-get install git** in Terminal
 * Install g++ by command **sudo apt-get install g++** in Terminal
@@ -16,29 +16,29 @@ You need to install g++ version 4.9 manually by such commands
 * sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 21
 * sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 21
 
-###Prepare folder
+### Prepare folder
 
 Choose a folder for the future build, for example **/home/user/TBuild** There you will have two folders, **Libraries** for third-party libs and **tdesktop** (or **tdesktop-master**) for the app.
 
-###Clone source code
+### Clone source code
 
 By git – in Terminal go to **/home/user/TBuild** and run
 
     git clone --recursive https://github.com/telegramdesktop/tdesktop.git
 
-###Prepare libraries
+### Prepare libraries
 
 Install dev libraries
 
     sudo apt-get install libexif-dev liblzma-dev libz-dev libssl-dev libappindicator-dev libunity-dev
 
-####zlib 1.2.8
+#### zlib 1.2.8
 
 http://www.zlib.net/ > Download [**zlib source code, version 1.2.8, zipfile format**](http://zlib.net/zlib128.zip)
 
 Extract to **/home/user/TBuild/Libraries**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/home/user/TBuild/Libraries/zlib-1.2.8** and run:
 
@@ -48,7 +48,7 @@ In Terminal go to **/home/user/TBuild/Libraries/zlib-1.2.8** and run:
 
 Install audio libraries
 
-####Opus codec 1.1
+#### Opus codec 1.1
 
 Download [opus-1.1 sources](http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz) from http://www.opus-codec.org/downloads, extract to **/home/user/TBuild/Libraries**, go to **/home/user/TBuild/Libraries/opus-1.1** and run
 
@@ -56,7 +56,7 @@ Download [opus-1.1 sources](http://downloads.xiph.org/releases/opus/opus-1.1.tar
     make
     sudo make install
 
-####FFmpeg
+#### FFmpeg
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -80,7 +80,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####PortAudio 19
+#### PortAudio 19
 
 [Download portaudio sources](http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz) from **http://www.portaudio.com/download.html**, extract to **/home/user/TBuild/Libraries**, go to **/home/user/TBuild/Libraries/portaudio** and run
 
@@ -88,7 +88,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####OpenAL Soft
+#### OpenAL Soft
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -101,7 +101,7 @@ then go to **/home/user/TBuild/Libraries/openal-soft/build** and run
     make
     sudo make install
 
-####OpenSSL
+#### OpenSSL
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -112,7 +112,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####libxkbcommon (required for Fcitx Qt plugin)
+#### libxkbcommon (required for Fcitx Qt plugin)
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -123,7 +123,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-####Qt 5.6.2, slightly patched
+#### Qt 5.6.2, slightly patched
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -135,11 +135,11 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     cd qtimageformats && git checkout v5.6.2 && cd ..
     cd qtbase && git checkout v5.6.2 && cd ..
 
-#####Apply the patch
+##### Apply the patch
 
     cd qtbase && git apply ../../../tdesktop/Telegram/Patches/qtbase_5_6_2.diff && cd ..
 
-#####Building library
+##### Building library
 
 Install some packages for Qt (see **/home/user/TBuild/Libraries/qt5_6_2/qtbase/src/plugins/platforms/xcb/README**)
 
@@ -153,7 +153,7 @@ In Terminal go to **/home/user/TBuild/Libraries/qt5_6_2** and there run
 
 building (**make** command) will take really long time.
 
-####Google Breakpad
+#### Google Breakpad
 
 In Terminal go to **/home/user/TBuild/Libraries** and run
 
@@ -164,7 +164,7 @@ In Terminal go to **/home/user/TBuild/Libraries** and run
     make
     sudo make install
 
-###Building Telegram codegen utilities
+### Building Telegram codegen utilities
 
 In Terminal go to **/home/user/TBuild/tdesktop** and run
 
@@ -177,7 +177,7 @@ In Terminal go to **/home/user/TBuild/tdesktop** and run
     /usr/local/tdesktop/Qt-5.6.2/bin/qmake CONFIG+=debug ../../../../Telegram/build/qmake/codegen_numbers/codegen_numbers.pro
     make
 
-###Building Telegram Desktop
+### Building Telegram Desktop
 
 * Launch Qt Creator, all projects will be taken from **/home/user/TBuild/tdesktop/Telegram**
 * Tools > Options > Build & Run > Qt Versions tab > Add > File System /usr/local/tdesktop/Qt-5.6.2/bin/qmake > **Qt 5.6.2 (Qt-5.6.2)** > Apply
diff --git a/doc/building-xcode-old.md b/doc/building-xcode-old.md
index 215f9e567..90b9fcf85 100644
--- a/doc/building-xcode-old.md
+++ b/doc/building-xcode-old.md
@@ -1,12 +1,12 @@
-##Build instructions for Xcode 7.2.1
+## Build instructions for Xcode 7.2.1
 
 **NB** These are outdated, please refer to [Building using Xcode][xcode] instructions.
 
-###Prepare folder
+### Prepare folder
 
 Choose a folder for the future build, for example **/Users/user/TBuild** There you will have two folders, **Libraries** for third-party libs and **tdesktop** (or **tdesktop-master**) for the app.
 
-###Clone source code
+### Clone source code
 
 By git – in Terminal go to **/Users/user/TBuild** and run
 
@@ -16,7 +16,7 @@ then go to **/Users/user/TBuild/tdesktop** and run
 
     git checkout dev
 
-####Prepare latest cmake
+#### Prepare latest cmake
 
 Download the [latest sources](https://cmake.org/download/) and unpack to **/Users/user/TBuild/Libraries/macold**
 
@@ -24,7 +24,7 @@ Download the [latest sources](https://cmake.org/download/) and unpack to **/User
     make -j4
     sudo make install
 
-###Prepare libraries
+### Prepare libraries
 
 In your build Terminal run
 
@@ -32,7 +32,7 @@ In your build Terminal run
 
 to set minimal supported OS version to 10.6 for future console builds.
 
-####custom build of libc++
+#### custom build of libc++
 
 From **/Users/user/TBuild/Libraries/macold** run
 
@@ -57,13 +57,13 @@ From **/Users/user/TBuild/Libraries/macold** run
     make -j4
     sudo make install
 
-####zlib 1.2.8
+#### zlib 1.2.8
 
 http://www.zlib.net/ > Download [**zlib source code, version 1.2.8**](http://www.zlib.net/fossils/zlib-1.2.8.tar.gz)
 
 Extract to **/Users/user/TBuild/Libraries/macold**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/zlib-1.2.8** and run:
 
@@ -71,7 +71,7 @@ In Terminal go to **/Users/user/TBuild/Libraries/zlib-1.2.8** and run:
     make
     sudo make install
 
-####OpenSSL 1.0.1g
+#### OpenSSL 1.0.1g
 
 http://www.openssl.org/source/ > Download [**openssl-1.0.1h.tar.gz**](http://www.openssl.org/source/openssl-1.0.1h.tar.gz) (4.3 Mb)
 
@@ -80,13 +80,13 @@ Extract openssl-1.0.1h.tar.gz to **/Users/user/TBuild/Libraries/macold/openssl-1
     ./Configure --install_prefix=/usr/local/macold darwin64-x86_64-cc -static -mmacosx-version-min=10.6
     make build_crypto build_ssl -j4
 
-####liblzma
+#### liblzma
 
 http://tukaani.org/xz/ > Download [**xz-5.0.5.tar.gz**](http://tukaani.org/xz/xz-5.0.5.tar.gz)
 
 Extract to **/Users/user/TBuild/Libraries**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** and there run
 
@@ -94,13 +94,13 @@ In Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** and there run
     make
     sudo make install
 
-####libexif 0.6.20
+#### libexif 0.6.20
 
 Get sources from https://github.com/telegramdesktop/libexif-0.6.20, by git – in Terminal go to **/Users/user/TBuild/Libraries/macold** and run
 
     git clone https://github.com/telegramdesktop/libexif-0.6.20.git
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/macold/libexif-0.6.20** and there run
 
@@ -108,7 +108,7 @@ In Terminal go to **/Users/user/TBuild/Libraries/macold/libexif-0.6.20** and the
     make -j4
     sudo make install
 
-####OpenAL Soft
+#### OpenAL Soft
 
 Get sources by git – in Terminal go to **/Users/user/TBuild/Libraries/macold** and run
 
@@ -116,7 +116,7 @@ Get sources by git – in Terminal go to **/Users/user/TBuild/Libraries/macold**
 
 to have **/Users/user/TBuild/Libraries/macold/openal-soft/CMakeLists.txt**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/openal-soft/build** and there run
 
@@ -124,11 +124,11 @@ In Terminal go to **/Users/user/TBuild/Libraries/openal-soft/build** and there r
     make
     sudo make install
 
-####Opus codec
+#### Opus codec
 
 Download sources [opus-1.1.tar.gz](http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz) from http://www.opus-codec.org/downloads/, extract to **/Users/user/TBuild/Libraries** and rename to have **/Users/user/TBuild/Libraries/opus/configure**
 
-#####Building libraries
+##### Building libraries
 
 Download [pkg-config 0.28](http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz) from http://pkg-config.freedesktop.org, extract it to **/Users/user/TBuild/Libraries**
 
@@ -144,7 +144,7 @@ then go to **/Users/user/TBuild/Libraries/opus** and there run
     make
     sudo make install
 
-####FFmpeg
+#### FFmpeg
 
 In Terminal go to **/Users/user/TBuild/Libraries/macold** and run:
 
@@ -152,7 +152,7 @@ In Terminal go to **/Users/user/TBuild/Libraries/macold** and run:
     cd ffmpeg
     git checkout release/3.2
 
-#####Building libraries
+##### Building libraries
 
 Download [libiconv-1.14](http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz) from http://www.gnu.org/software/libiconv/#downloading, extract it to **/Users/user/TBuild/Libraries/macold**
 
@@ -177,8 +177,8 @@ Then in Terminal go to **/Users/user/TBuild/Libraries/macold/ffmpeg** and run
     make
     sudo make install
 
-####Qt 5.3.2, slightly patched
-#####Get the source code
+#### Qt 5.3.2, slightly patched
+##### Get the source code
 
 In Terminal go to **/Users/user/TBuild/Libraries** and run:
 
@@ -190,7 +190,7 @@ In Terminal go to **/Users/user/TBuild/Libraries** and run:
     cd qtimageformats && git checkout v5.3.2 && cd ..
     cd qtbase && git checkout v5.3.2 && cd ..
 
-#####Apply the patch
+##### Apply the patch
 
 From **/Users/user/TBuild/Libraries/macold/qt5_3_2/qtbase**, run:
 
@@ -200,7 +200,7 @@ From **/Users/user/TBuild/Libraries/macold/qt5_3_2/qtimageformats**, run:
 
     git apply ../../../../tdesktop/Telegram/Patches/macold/qtimageformats_5_3_2.diff
 
-#####Building library
+##### Building library
 
 Go to **/Users/user/TBuild/Libraries/macold/qt5_3_2** and run:
 
@@ -210,13 +210,13 @@ Go to **/Users/user/TBuild/Libraries/macold/qt5_3_2** and run:
 
 building (**make** command) will take really long time.
 
-####Google Crashpad
+#### Google Crashpad
 
-#####Install gyp
+##### Install gyp
 
 .. the same as modern ..
 
-#####Build crashpad
+##### Build crashpad
 
 In Terminal go to **/Users/user/TBuild/Libraries/macold** and run:
 
@@ -238,11 +238,11 @@ In Terminal go to **/Users/user/TBuild/Libraries/macold** and run:
     ninja -C out/Debug
     ninja -C out/Release
 
-####Prepare GYP
+#### Prepare GYP
 
 .. the same as modern ..
 
-###Building Telegram Desktop
+### Building Telegram Desktop
 
 * Launch Xcode, all projects will be taken from **/Users/user/TBuild/tdesktop/Telegram**
 * Open MetaEmoji.xcodeproj and build for Debug (Release optionally)
diff --git a/doc/building-xcode.md b/doc/building-xcode.md
index 43a543d98..4a49c927f 100644
--- a/doc/building-xcode.md
+++ b/doc/building-xcode.md
@@ -1,6 +1,6 @@
-##Build instructions for Xcode 8.0
+## Build instructions for Xcode 8.0
 
-###Prepare folder
+### Prepare folder
 
 Choose a folder for the future build, for example **/Users/user/TBuild**
 
@@ -8,13 +8,13 @@ There you will have two folders, **Libraries** for third-party libs and **tdeskt
 
 **You will need this hierarchy to be able to follow this README !**
 
-###Clone source code
+### Clone source code
 
 By git – in Terminal go to **/Users/user/TBuild** and run:
 
     git clone --recursive https://github.com/telegramdesktop/tdesktop.git
 
-###Prepare libraries
+### Prepare libraries
 
 In your build Terminal run:
 
@@ -22,13 +22,13 @@ In your build Terminal run:
 
 to set minimal supported OS version to 10.8 for future console builds.
 
-####zlib 1.2.8
+#### zlib 1.2.8
 
 http://www.zlib.net/ > Download [**zlib source code, version 1.2.8**](http://www.zlib.net/fossils/zlib-1.2.8.tar.gz)
 
 Extract to **/Users/user/TBuild/Libraries**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/zlib-1.2.8** and run:
 
@@ -36,9 +36,9 @@ In Terminal go to **/Users/user/TBuild/Libraries/zlib-1.2.8** and run:
     make
     sudo make install
 
-####OpenSSL 1.0.1g
+#### OpenSSL 1.0.1g
 
-#####Get openssl-xcode project file
+##### Get openssl-xcode project file
 
 From https://github.com/telegramdesktop/openssl-xcode with git in Terminal:
 
@@ -49,7 +49,7 @@ From https://github.com/telegramdesktop/openssl-xcode with git in Terminal:
 
 The path to openssl.xcodeproj should now be: **/Users/user/TBuild/Libraries/openssl-xcode/openssl.xcodeproj**
 
-#####Get the source code:
+##### Get the source code:
 
 Download [**openssl-1.0.1h.tar.gz**](http://www.openssl.org/source/openssl-1.0.1h.tar.gz) (4.3 Mb)
 
@@ -59,19 +59,19 @@ Download [**openssl-1.0.1h.tar.gz**](http://www.openssl.org/source/openssl-1.0.1
 The folder include of openssl should be:
 **/Users/user/TBuild/Libraries/openssl-xcode/include**
 
-#####Building library
+##### Building library
 
 * Open **/Users/user/TBuild/Libraries/openssl-xcode/openssl.xcodeproj** with Xcode
 * Product > Build
 
-####liblzma
-#####Get the source code
+#### liblzma
+##### Get the source code
 
 Download [**xz-5.0.5.tar.gz**](http://tukaani.org/xz/xz-5.0.5.tar.gz)
 
 Extract to **/Users/user/TBuild/Libraries**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** and there run:
 
@@ -79,8 +79,8 @@ In Terminal go to **/Users/user/TBuild/Libraries/xz-5.0.5** and there run:
     make
     sudo make install
 
-####libexif 0.6.20
-#####Get the source code
+#### libexif 0.6.20
+##### Get the source code
 
 From https://github.com/telegramdesktop/libexif-0.6.20 with git in Terminal:
 
@@ -92,7 +92,7 @@ From https://github.com/telegramdesktop/libexif-0.6.20 with git in Terminal:
 The folder configure should have this path:
 **/Users/user/TBuild/Libraries/libexif-0.6.20/configure**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** and there run
 
@@ -100,7 +100,7 @@ In Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** and there run
     make
     sudo make install
 
-####OpenAL Soft
+#### OpenAL Soft
 
 Get sources by git – in Terminal go to **/Users/user/TBuild/Libraries** and run
 
@@ -108,7 +108,7 @@ Get sources by git – in Terminal go to **/Users/user/TBuild/Libraries** and ru
 
 to have **/Users/user/TBuild/Libraries/openal-soft/CMakeLists.txt**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/openal-soft/build** and there run
 
@@ -116,14 +116,14 @@ In Terminal go to **/Users/user/TBuild/Libraries/openal-soft/build** and there r
     make
     sudo make install
 
-####Opus codec
-#####Get the source code
+#### Opus codec
+##### Get the source code
 
 * Download sources [opus-1.1.tar.gz](http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz) from http://www.opus-codec.org/downloads/
 * Extract them to **/Users/user/TBuild/Libraries**
 * Rename opus-1.1 to opus to have **/Users/user/TBuild/Libraries/opus/configure**
 
-#####Building library
+##### Building library
 
 * Download [pkg-config 0.28](http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz) from http://pkg-config.freedesktop.org
 * Extract it to **/Users/user/TBuild/Libraries**
@@ -140,8 +140,8 @@ then go to **/Users/user/TBuild/Libraries/opus** and run:
     make
     sudo make install
 
-####FFmpeg and Libiconv
-#####Get the source code
+#### FFmpeg and Libiconv
+##### Get the source code
 
 In Terminal go to **/Users/user/TBuild/Libraries** and run:
 
@@ -152,7 +152,7 @@ In Terminal go to **/Users/user/TBuild/Libraries** and run:
 * Download [libiconv-1.14](http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz) from http://www.gnu.org/software/libiconv/#downloading
 * Extract to **/Users/user/TBuild/Libraries** to have **/Users/user/TBuild/Libraries/ibiconv-1.14**
 
-#####Building library
+##### Building library
 
 In Terminal go to **/Users/user/TBuild/Libraries/libiconv-1.14** and run:
 
@@ -175,8 +175,8 @@ Then in Terminal go to **/Users/user/TBuild/Libraries/ffmpeg** and run:
     make
     sudo make install
 
-####Qt 5.6.2, slightly patched
-#####Get the source code
+#### Qt 5.6.2, slightly patched
+##### Get the source code
 
 In Terminal go to **/Users/user/TBuild/Libraries** and run:
 
@@ -188,13 +188,13 @@ In Terminal go to **/Users/user/TBuild/Libraries** and run:
     cd qtimageformats && git checkout v5.6.2 && cd ..
     cd qtbase && git checkout v5.6.2 && cd ..
 
-#####Apply the patch
+##### Apply the patch
 
 From **/Users/user/TBuild/Libraries/qt5_6_2/qtbase**, run:
 
     git apply ../../../tdesktop/Telegram/Patches/qtbase_5_6_2.diff
 
-#####Building library
+##### Building library
 
 Go to **/Users/user/TBuild/Libraries/qt5_6_2** and run:
 
@@ -204,9 +204,9 @@ Go to **/Users/user/TBuild/Libraries/qt5_6_2** and run:
 
 Building (**make** command) will take a really long time.
 
-####Google Crashpad
+#### Google Crashpad
 
-#####Install gyp
+##### Install gyp
 
 In Terminal go to **/Users/user/TBuild/Libraries** and run:
 
@@ -217,7 +217,7 @@ In Terminal go to **/Users/user/TBuild/Libraries** and run:
     sudo ./setup.py install
     cd ..
 
-#####Build crashpad
+##### Build crashpad
 
 In Terminal go to **/Users/user/TBuild/Libraries** and run:
 
@@ -231,14 +231,14 @@ In Terminal go to **/Users/user/TBuild/Libraries** and run:
     build/gyp_crashpad.py -Dmac_deployment_target=10.8
     ninja -C out/Release
 
-####Prepare GYP
+#### Prepare GYP
 
 In Terminal go to **/Users/user/TBuild/Libraries** and run
 
     cd gyp
     git apply ../../tdesktop/Telegram/Patches/gyp.diff
 
-###Building Telegram Desktop
+### Building Telegram Desktop
 
 In Terminal go to **/home/user/TBuild/tdesktop/Telegram** and run