Markdown tables do not preview correctly in the composer windows

Environment

Discourse Version: 2.7.0.beta1

Plugin Commit: 2681fe21adae1645dcac6aa0386524578e6185b8

Other Plugins
N/A

Steps to Reproduce

  1. Create a wizard with a composer field, that uses the composer field contents to create a new topic.

  2. Place the following markdown into the composer window:

    |Title A|TitleB|
    |---|---|
    |Value A|Value B|
    
  3. Observe how the preview is formatted when the ‘Preview Post’ button is clicked.

image

  1. Observe how the table is formatted different in the final post.

image

1 Like

@fzngagan Please handle this one when you get the time.

2 Likes

@othomson

I’ve just merged this in. This is how the tables look now.

1 Like

Thanks!

1 Like