Skip to content

Add spanned columns in tables #176

Description

@nkalvi

Please add support for spanned column in tables - as implemented in some other MD variants.

Activity

  1. adam-p commented on Aug 13, 2014

    @adam-p
    Owner

    Can you provide pointers toward the spanning syntax used in other MD variants?

    Unsatisfying workaround: You can use raw HTML, like so:

    <table>
        <tr>
            <th>Col 1</th>
            <th>Col 2</th>
            <th>Col 3</th>
        </tr>
        <tr>
            <td colspan="2">span 2 cols</td>
            <td rowspan="2">span 2 rows</td>
        </tr>
        <tr>
            <td>stuff</td>
            <td>stuff</td>
        </tr>
    </table>​
    

    Except that because of #157 it won't actually render very nicely -- it'll work a lot better if you put all the HTML on a single line.

    search keywords: colspan rowspan

  2. adam-p commented on Mar 3, 2015

    @adam-p
    Owner

    A follow-up to this...

    It seems that MultiMarkdown does have colspan syntax, but not rowspan.

    Probably the best way to do rowspan and colspan right now is to use this online HTML table generator to create your table, and then paste it into your email (or whatever) and use MDH to render it. Make sure to check the boxes for "Do not generate CSS" (because MDH provides the CSS) and "Compact mode" (to avoid the multi-line HTML problem I mentioned above).

    (I'm also going to add that to the Tips & Tricks wiki page.)

  3. sixtyfive commented on Nov 5, 2016

    @sixtyfive

    Hi @adam-p! Do you think it would be feasible to implement rowspan in a Markdown parser at all?

  4. CTimmerman commented on Jul 23, 2018

    @CTimmerman

    I like Textile's syntax for spans:

    A backslash \ is used for a column span.

    |\2. spans two cols |
    | col 1 | col 2 |

    A forward slash / is used for a row span.

    |/3. spans 3 rows | row a |
    | row b |
    | row c |

  5. voronin-de commented on Dec 8, 2021

    @voronin-de

    Uhm.. so no rowspan or colspan unless we write HTML? :/

  6. sixtyfive commented on Dec 8, 2021

    @sixtyfive

    that link is dead btw, @CTimmerman

  7. CTimmerman commented on Dec 8, 2021

    @CTimmerman

    that link is dead btw, @CTimmerman

    Then use inline HTML instead. https://stackoverflow.com/a/35485694/819417

  8. sixtyfive commented on Dec 8, 2021

    @sixtyfive

    that was easy to misunderstand, apologies. i meant that the link to Textile's docs that you posted above ("https://txstyle.org/doc/15/tables") is dead. it should be https://textile-lang.com/doc/tables instead.

  9. CTimmerman commented on Dec 9, 2021

    @CTimmerman

    that was easy to misunderstand, apologies. i meant that the link to Textile's docs that you posted above ("https://txstyle.org/doc/15/tables") is dead. it should be https://textile-lang.com/doc/tables instead.

    Thanks. I couldn't find the new link due to https://pypi.org/project/TxtStyle/ which is probably why they renamed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions