Skip to content

[Bug] Markdown Table With one Column missing alignment fails to convert #11147

Description

@iJungleboy

Describe the bug

In the latest release (just a few hours ago) something broke converting tables.
In the following example, the first table converts as expected the second does not

This works:

| Field       | PersonShared  | Person      |
| ---         | ---           | ---         |
| Name        | 🔊 Master     | 🔗 Inherit  |

While this fails - note the missing "---" under the second column "PersonShared"

| Field       | PersonShared  | Person      |
| ---         |               | ---         |
| Name        | 🔊 Master     | 🔗 Inherit  |

The first table converts as expected, the second results as the markdown being added to the page:

<p>While this fails - note the missing &quot;---&quot; under the second column &quot;PersonShared&quot;</p>
<p>| Field       | PersonShared  | Person      |
| ---         |               | ---         |
| Name        | 🔊 Master     | 🔗 Inherit  |</p>

Expected behavior

Both should convert - this did work before.

Context (please complete the following information):

  • OS: Windows
  • Docfx version: 2.78.6

Additional context

I'm quite certain this is a regression from #11088

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions