Skip to content

Full table syntax not supported #10

Closed

Description

@madskristensen

This syntax isn't treated as a table:

|Milestone|Release Date|
|---------|------------|
|Beta7    | 24 Aug 2015|
|Beta8    | 21 Sep 2015|
|RC1      |    Nov 2015|
|RC2 Pre1 |    May 2016|

Using BabelMark3 I can see that some other parsers render it correctly, like this:

image

Activity

  1. xoofx commented on Jun 19, 2016

    @xoofx
    Owner

    Indeed, it looks like a trailing | on the header separator is making the table detection not working properly. For example this one is working:

    |Milestone|Release Date|
    |---------|------------
    |Beta7    | 24 Aug 2015|
    |Beta8    | 21 Sep 2015|
    |RC1      |    Nov 2015|
    |RC2 Pre1 |    May 2016|
    

    Will dig into this.

  2. xoofx commented on Jun 19, 2016

    @xoofx
    Owner

    Should be fixed by commit 593bf08
    Version 0.5.3 on the way to NuGet
    Thanks for the report!

  3. madskristensen commented on Jun 19, 2016

    @madskristensen
    Author

    Awesome. Thanks :)

  4. madskristensen commented on Jun 19, 2016

    @madskristensen
    Author

    I can't get this to work. Now it won't render a table with or without missing | characters

  5. xoofx commented on Jun 19, 2016

    @xoofx
    Owner

    Could you reopen another bug with an isolated case?

  6. madskristensen commented on Jun 19, 2016

    @madskristensen
    Author

    It's the exact same case. The following markdown is the only content in the file

    |Milestone|Release Date|
    |---------|------------|
    |Beta7    | 24 Aug 2015|
    |Beta8    | 21 Sep 2015|
    |RC1      |    Nov 2015|
    |RC2 Pre1 |    May 2016|

    This is the rendered output:

    <p>|Milestone|Release Date|
    |&mdash;&mdash;&mdash;|&mdash;&mdash;&mdash;&mdash;|
    |Beta7    | 24 Aug 2015|
    |Beta8    | 21 Sep 2015|
    |RC1      |    Nov 2015|
    |RC2 Pre1 |    May 2016|</p>

    Confirmed by babelmark3 as well

  7. madskristensen commented on Jun 19, 2016

    @madskristensen
    Author

    Well, according to babelmark3, Markdig (Extra) seems to render it correctly. What does the Extra refer to and how can I use it?

  8. madskristensen commented on Jun 19, 2016

    @madskristensen
    Author

    This is my builder code:

    var builder = new MarkdownPipelineBuilder()
        .UseEmojiAndSmiley()
        .UseSmartyPants()
        .UseAdvancedExtensions();
  9. madskristensen commented on Jun 19, 2016

    @madskristensen
    Author

    Ok, I narrowed it down and will be opening a new bug

    Issue #13

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions