Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table with indentation on cells does not work #160

Open
svivian opened this issue Jul 19, 2018 · 2 comments
Open

Table with indentation on cells does not work #160

svivian opened this issue Jul 19, 2018 · 2 comments

Comments

@svivian
Copy link

svivian commented Jul 19, 2018

Using Markdown Extra. Example:

Test long field | Something
--------------: | ----------
              1 | Test
              2 | Test
              3 | Test

Resulting HTML:

<table>
<thead>
<tr><th align="right">Test long field</th><th>Something</th></tr>
</thead>
<tbody>
</tbody>
</table>
<pre><code>          1 | Test
          2 | Test
          3 | Test
</code></pre>

The space indentation in the table cell is being interpreted as a code block. I'm pretty sure this was working correctly with an earlier version.

@cebe
Copy link
Owner

cebe commented Jul 21, 2018

Github also does render it like this:

Test long field Something
          1 | Test
          2 | Test
          3 | Test

@cebe
Copy link
Owner

cebe commented Jul 21, 2018

It could probably be changed to render as a table.

In the meantime you can use it like this:

| Test long field | Something
| --------------: | ----------
|               1 | Test
|               2 | Test
|               3 | Test
Test long field Something
1 Test
2 Test
3 Test

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

No branches or pull requests

2 participants