Add leading and trailing pipes to tables in readme.md (#394)

A rendering of the “Terminal support” table was broken in `README.md`.

The [new GitHub's parser][1] seems to handle differently the leftmost empty
table cell if it has no leading pipe (`|`):

* if it's in the middle of the table, the whole row shifts to the left
  (the second cell becomes first, third takes place of the second, etc.)
* if it's the table's last row or all rows after it also have only whitespace
  and no leading pipe, they are parsed as a new block element
  (the code block, because of leading whitespace)

Also, new spec [recommends][2] adding leading and trailing pipes for
_“clarity of reading”_ and to avoid parsing ambiguity. Both currently existing
tables were updated to follow this advice.

[1]: https://githubengineering.com/a-formal-spec-for-github-markdown/
[2]: https://github.github.com/gfm/#tables-extension-
pull/401/head
Ivan Vyshnevskyi 2017-03-25 17:05:36 +02:00 zatwierdzone przez Nikita Prokopov
rodzic 88fdc524fb
commit 1f135b6b01
1 zmienionych plików z 57 dodań i 57 usunięć

114
README.md
Wyświetl plik

@ -48,66 +48,66 @@ Clojure:
### Terminal support ### Terminal support
Works | Doesnt work | Works | Doesnt work |
---------------- | --------------- | ---------------- | ------------------ |
**Black Screen** | **Cmder** | **Black Screen** | **Cmder** |
**Butterfly** | **ConEmu** | **Butterfly** | **ConEmu** |
**Hyper.app** | **GNOME Terminal** | **Hyper.app** | **GNOME Terminal** |
**Konsole** | **iTerm 2** ([coming in 3.1](https://gitlab.com/gnachman/iterm2/issues/3568#note_13118332)) | **Konsole** | **iTerm 2** ([coming in 3.1](https://gitlab.com/gnachman/iterm2/issues/3568#note_13118332)) |
**QTerminal** | **mate-terminal** | **QTerminal** | **mate-terminal** |
**Terminal.app** (OS X default terminal) | **mintty** | **Terminal.app** (OS X default terminal) | **mintty**
**Termux** (Android terminal emulator) | **PuTTY** | **Termux** (Android terminal emulator) | **PuTTY**
| **rxvt** | | **rxvt** |
| **gtkterm, guake, LXTerminal, sakura, Terminator, xfce4-terminal,** and other libvte-based terminals ([bug report](https://bugzilla.gnome.org/show_bug.cgi?id=584160)) | | **gtkterm, guake, LXTerminal, sakura, Terminator, xfce4-terminal,** and other libvte-based terminals ([bug report](https://bugzilla.gnome.org/show_bug.cgi?id=584160)) |
### Editor support ### Editor support
Works | Doesnt work | Works | Doesnt work |
--------|---------------- | ----- | -------------- |
**Anjuta** (unless at the EOF) | **Arduino IDE** | **Anjuta** (unless at the EOF) | **Arduino IDE** |
**AppCode** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | **Adobe Dreamweaver** | **AppCode** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | **Adobe Dreamweaver** |
**Atom** 1.1 or newer ([instructions](https://github.com/tonsky/FiraCode/wiki/Atom-instructions)) | **Eclipse** (Mac and Win, [vote here](https://bugs.eclipse.org/bugs/show_bug.cgi?id=398656)) | **Atom** 1.1 or newer ([instructions](https://github.com/tonsky/FiraCode/wiki/Atom-instructions)) | **Eclipse** (Mac and Win, [vote here](https://bugs.eclipse.org/bugs/show_bug.cgi?id=398656)) |
**BBEdit/TextWrangler** ([instructions](https://github.com/tonsky/FiraCode/wiki/BBEdit-instructions)) | Standalone **Emacs** ([workaround](https://github.com/tonsky/FiraCode/wiki/Setting-up-Emacs)) | **BBEdit/TextWrangler** ([instructions](https://github.com/tonsky/FiraCode/wiki/BBEdit-instructions)) | Standalone **Emacs** ([workaround](https://github.com/tonsky/FiraCode/wiki/Setting-up-Emacs)) |
**Brackets** (with [this plugin](https://github.com/polo2ro/firacode-in-brackets)) | **gVim** | **Brackets** (with [this plugin](https://github.com/polo2ro/firacode-in-brackets)) | **gVim** |
**Chocolat** | **IDLE** | **Chocolat** | **IDLE** |
**CLion** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | **KDevelop 4** | **CLion** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | **KDevelop 4** |
**Coda 2** | **Monkey Studio IDE** | **Coda 2** | **Monkey Studio IDE** |
**CodeLite** | **Notepad++** | **CodeLite** | **Notepad++** |
**Eclipse** (Linux) | **Spyder IDE** | **Eclipse** (Linux) | **Spyder IDE** |
**Geany** | **SublimeText** ([vote here](http://sublimetext.userecho.com/topic/1030059-does-sublimetext-support-programming-ligatures-fontlike-fira-code/)) | **Geany** | **SublimeText** ([vote here](http://sublimetext.userecho.com/topic/1030059-does-sublimetext-support-programming-ligatures-fontlike-fira-code/)) |
**gEdit / Pluma** | | **gEdit / Pluma** |
**GNOME Builder** | | **GNOME Builder** |
**IntelliJ IDEA** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | | **IntelliJ IDEA** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) |
**Kate, KWrite** | | **Kate, KWrite** |
**Komodo** | | **Komodo** |
**Leafpad** | | **Leafpad** |
**LibreOffice** | | **LibreOffice** |
**LightTable** ([instructions](https://github.com/tonsky/FiraCode/wiki/LightTable-instructions)) | | **LightTable** ([instructions](https://github.com/tonsky/FiraCode/wiki/LightTable-instructions)) |
**LINQPad** | | **LINQPad** |
**MacVim** 7.4 or newer ([instructions](https://github.com/tonsky/FiraCode/wiki/MacVim-instructions)) | | **MacVim** 7.4 or newer ([instructions](https://github.com/tonsky/FiraCode/wiki/MacVim-instructions)) |
**Mancy** | | **Mancy** |
**Meld** | | **Meld** |
**Mousepad** | | **Mousepad** |
**NetBeans** | | **NetBeans** |
**Notepad** (Win) | | **Notepad** (Win) |
**PhpStorm** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | | **PhpStorm** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) |
**PyCharm** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | | **PyCharm** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) |
**QtCreator** | | **QtCreator** |
**Rider** | | **Rider** |
**RStudio** ([instructions](https://github.com/tonsky/FiraCode/wiki/RStudio-instructions)) | | **RStudio** ([instructions](https://github.com/tonsky/FiraCode/wiki/RStudio-instructions)) |
**RubyMine** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | | **RubyMine** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) |
**Scratch** | | **Scratch** |
**TextAdept** (Linux, Mac) | | **TextAdept** (Linux, Mac) |
**TextEdit** | | **TextEdit** |
**TextMate 2** | | **TextMate 2** |
**VimR** ([instructions](https://github.com/qvacua/vimr/wiki#ligatures)) | | **VimR** ([instructions](https://github.com/qvacua/vimr/wiki#ligatures)) |
**Visual Studio 2015** | | **Visual Studio 2015** |
**Visual Studio 2017** | | **Visual Studio 2017** |
**Visual Studio Code** ([instructions](https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions)) | | **Visual Studio Code** ([instructions](https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions)) |
**WebStorm** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) | | **WebStorm** (2016.2+, [instructions](https://github.com/tonsky/FiraCode/wiki/Intellij-products-instructions)) |
**Xamarin Studio/Monodevelop** | | **Xamarin Studio/Monodevelop** |
**Xcode** (with [this plugin](https://github.com/robertvojta/LigatureXcodePlugin)) | | **Xcode** (with [this plugin](https://github.com/robertvojta/LigatureXcodePlugin)) |
Probably work: **Smultron, Vico** | Under question: **Code::Blocks IDE** | Probably work: **Smultron, Vico** | Under question: **Code::Blocks IDE** |
### Browser support ### Browser support