Skip to content

Instantly share code, notes, and snippets.

@mokagio
Last active August 31, 2023 00:14
Show Gist options
  • Select an option

  • Save mokagio/2dc7c31faf624385210afa2cda3a2ee1 to your computer and use it in GitHub Desktop.

Select an option

Save mokagio/2dc7c31faf624385210afa2cda3a2ee1 to your computer and use it in GitHub Desktop.

Revisions

  1. mokagio revised this gist Feb 14, 2019. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions tables.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    This
    This:

    ```mt
    heading 1 | heading 2 | heading 3
    @@ -7,14 +7,16 @@ abc | bcd | cde
    def | efg | fgh
    ```

    becomes this
    becomes this:

    heading 1 | heading 2 | heading 3
    --- | --- | ---
    abc | bcd | cde
    def | efg | fgh

    You can also use plain old HTML tables. This
    ---

    You can also use plain old HTML tables. This:

    ```html
    <table>
    @@ -36,7 +38,7 @@ You can also use plain old HTML tables. This
    </table>
    ```

    becomes this
    becomes this:

    <table>
    <tr>
  2. mokagio revised this gist Feb 14, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion tables.md
    Original file line number Diff line number Diff line change
    @@ -54,4 +54,6 @@ becomes this
    <td>efg</td>
    <td>fgh</td>
    </tr>
    </table>
    </table>

    Using HTML is handy because you can do more advanced things like nested tables, or adding lists within cells.
  3. mokagio created this gist Feb 14, 2019.
    57 changes: 57 additions & 0 deletions tables.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    This

    ```mt
    heading 1 | heading 2 | heading 3
    --- | --- | ---
    abc | bcd | cde
    def | efg | fgh
    ```

    becomes this

    heading 1 | heading 2 | heading 3
    --- | --- | ---
    abc | bcd | cde
    def | efg | fgh

    You can also use plain old HTML tables. This

    ```html
    <table>
    <tr>
    <th>heading 1</th>
    <th>heading 2</th>
    <th>heading 3</th>
    </tr>
    <tr>
    <td>abc</td>
    <td>bcd</td>
    <td>cde</td>
    </tr>
    <tr>
    <td>def</td>
    <td>efg</td>
    <td>fgh</td>
    </tr>
    </table>
    ```

    becomes this

    <table>
    <tr>
    <th>heading 1</th>
    <th>heading 2</th>
    <th>heading 3</th>
    </tr>
    <tr>
    <td>abc</td>
    <td>bcd</td>
    <td>cde</td>
    </tr>
    <tr>
    <td>def</td>
    <td>efg</td>
    <td>fgh</td>
    </tr>
    </table>