Skip to content

Table rendering no longer working with 1.4.x #256

@shaddockh

Description

@shaddockh

Table rendering is no longer working with the latest version. With the test code:

var showdown  = require('showdown'),
    converter = new showdown.Converter({tables: 'true'}),
    text      = ['|key|value|',
                 '|--|--|',
                 '|My Key|My Value|'].join('\n');
    html      = converter.makeHtml(text);

console.log(html);

The latest version showdown@^1.4.0 generates:

<p>|key|value|
|---|---|
|My Key|My Value|</p>

The prior versionshowdown@~1.3.0 generates it correctly as:

   <table>
   <thead>
   <tr>
   <th>key</th>
   <th>value</th>
   </tr>
   </thead>

   <tbody>
   <tr>
   <td>My Key</td>
   <td>My Value</td>
   </tr>

   </tbody>
   </table>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions