From db4296b2e379f45ec7bf12a441fe92923cc04667 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Mon, 7 Aug 2023 19:07:12 +0200 Subject: [PATCH] Format markdown table nicely --- README.md | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6006134..c208e26 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ A tiny JS dependency which exports many alphabets for many use cases. ## Why -I have seen [code like this](https://github.com/search?q=%27abcdefghijklmnopqrstuvwxyz%27.split%28%27%27%29+language%3AJavaScript&type=code&l=JavaScript): +I have seen [code like this]: ```js const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split(''); ``` -Or [worse](https://github.com/search?q=%5B%22a%22%2C+%22b%22%2C+%22c%22%2C+%22d%22%2C+%22e%22%2C+%22f%22%2C+%22g%22%2C+%22h%22%2C+%22i%22%2C+%22j%22%2C+%22k%22%2C+%22l%22%2C+%22m%22%2C+%22n%22%2C+%22o%22%2C+%22p%22%2C+%22q%22%2C+%22r%22%2C+%22s%22%2C+%22t%22%2C+%22u%22%2C+%22v%22%2C+%22w%22%2C+%22x%22%2C+%22y%22%2C+%22z%22%5D+language%3AJavaScript&type=code&l=JavaScript): +Or [worse]: ```js const alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; @@ -41,19 +41,19 @@ Install the [alphabets npm module](https://www.npmjs.com/package/alphabets) usin See below for [usage instructions](#how-to-use). -| Alphabet | Export name | -|------|-------------| -| Danish | `danish` | -| Faroese | `faroese` | -| Greek (modern) | `greek` | +| Alphabet | Export name | +|---------------------------|------------------| +| Danish | `danish` | +| Faroese | `faroese` | +| Greek (modern) | `greek` | | Greek (ancient/polytonic) | `greekPolytonic` | -| Icelandic | `icelandic` | -| Latin (abcdefg etc.) | `latin` | -| [NATO phonetic alphabet](https://en.wikipedia.org/wiki/NATO_phonetic_alphabet) | `nato` | -| Norwegian | `norwegian` | -| Russian | `russian` | -| Swedish | `swedish` | -| Ukrainian | `ukrainian` | +| Icelandic | `icelandic` | +| Latin (abcdefg etc.) | `latin` | +| [NATO phonetic alphabet] | `nato` | +| Norwegian | `norwegian` | +| Russian | `russian` | +| Swedish | `swedish` | +| Ukrainian | `ukrainian` | ## How to use @@ -75,3 +75,8 @@ console.log(alphabets.); (c) 2021-2023 Romein van Buren. Licensed under the MIT license. For the full copyright and license information, please view the [`LICENSE.md`](./LICENSE.md) file that was distributed with this source code. + + +[code like this]: https://github.com/search?q=%27abcdefghijklmnopqrstuvwxyz%27.split%28%27%27%29+language%3AJavaScript&type=code&l=JavaScript +[worse]: https://github.com/search?q=%5B%22a%22%2C+%22b%22%2C+%22c%22%2C+%22d%22%2C+%22e%22%2C+%22f%22%2C+%22g%22%2C+%22h%22%2C+%22i%22%2C+%22j%22%2C+%22k%22%2C+%22l%22%2C+%22m%22%2C+%22n%22%2C+%22o%22%2C+%22p%22%2C+%22q%22%2C+%22r%22%2C+%22s%22%2C+%22t%22%2C+%22u%22%2C+%22v%22%2C+%22w%22%2C+%22x%22%2C+%22y%22%2C+%22z%22%5D+language%3AJavaScript&type=code&l=JavaScript +[NATO phonetic alphabet]: https://en.wikipedia.org/wiki/NATO_phonetic_alphabet