**How to create table with Markdown** ![image](https://hackmd.io/_uploads/r1Idt4Hta.png) **Markdown table syntax** The easiest way to create a table is to click on the table icon in the editing tool bar at the top of the editing area. ![image](https://hackmd.io/_uploads/SktqtNBY6.png) You can also create table using keyboard like a pro. :star: We use |, -, and enter to create table with Markdown. The first row has to be the “header row”, which determines the number of columns the table would have. The second row must contain - separating pipes |. The pipes | separate each column. Newline character creates new row. [ilmibook](https://ilmibook.com/) **Example:** |Name |Quantity| |-----|--------| |Apple|3 | |Egg |12 | The above markdown creates a 2 by 3 table: Name Quantity Apple 3 Egg 12 **Table Editing Mode** HackMD makes it fast and easy to edit table with the Table Editing Mode, which features the new table editing toolbar. ![image](https://hackmd.io/_uploads/S1-e5Nrt6.png) There are two ways to enter the Table Editing Mode: 1: Enter a pipe | on a new line to start creating a table (On your keyboard: shift + \). You will immediately see the editing tool bar at the top changes, which means you are now in the Table Editing Mode. ![image](https://hackmd.io/_uploads/rksWq4BYp.png) 2:If you move your cursor into an existing table, you will also see your editing tool bar changes. ![image](https://hackmd.io/_uploads/HJ0m5VHFp.png) **Table editing toolbar** Now that you’re in the Table Editing Mode, let’s see how to use the table editing toolbar. ![image](https://hackmd.io/_uploads/HJ9HqVSYa.png) Table editing toolbar cheat sheet **Insert/Delete a row** ![image](https://hackmd.io/_uploads/HJDD5VHt6.png) **Insert/Delete a column** ![image](https://hackmd.io/_uploads/HkCdcESta.png) **Move a Row/Column** ![image](https://hackmd.io/_uploads/Hkk994HYp.png) ![image](https://hackmd.io/_uploads/BkP9cVHtT.png) **Alignment** ![image](https://hackmd.io/_uploads/BJSQnQAY6.png) **Enable keyboard shortcuts for table editing** HackMD has keyboard shortcuts for those who wants to create markdown tables like a pro. The keyboard shortcuts are disabled by default, however. You can turn it on in editor settings from the status bar below the editing area. ![image](https://hackmd.io/_uploads/BJpO2Q0YT.png) **Basic keyboard shortcut** Move focus to the next cell. ![image](https://hackmd.io/_uploads/HyQinQ0K6.png) Move focus to the previous cell. ![image](https://hackmd.io/_uploads/BJ22hQCK6.png) Move focus to the next row (Return in macOS) ![image](https://hackmd.io/_uploads/Sk4CnXAKT.png) Exit table editing mode(Command + Return in macOS) ![image](https://hackmd.io/_uploads/Sy0y6QAt6.png) Move focus of table cell (Command + Arrow keys in macOS) ![image](https://hackmd.io/_uploads/ry_Zp7RtT.png) **Appendix: Complete commands** If you are using Mac, use Command instead of Ctrl, and Return in place of Enter **Basic commands** ![image](https://hackmd.io/_uploads/S1YdT7RFT.png) **Move focus** ![image](https://hackmd.io/_uploads/HJ2i67RYa.png) **Alignment** ![image](https://hackmd.io/_uploads/BkNa6XRY6.png) **Row/column operations** ![image](https://hackmd.io/_uploads/BkKAaQRF6.png) **Credits** HackMD table editing feature was released in version 1.10. Special thanks to the open source module markdown-table-editor kernel created by susisu, who has been essential to the implementation of this feature.