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

Tables in Multimarkdown are not rendered properly #28

Open
EmacsPrimer opened this issue Dec 28, 2015 · 1 comment
Open

Tables in Multimarkdown are not rendered properly #28

EmacsPrimer opened this issue Dec 28, 2015 · 1 comment

Comments

@EmacsPrimer
Copy link

Summary: Tables in Multimarkdown are not rendered properly

Here is the page that demonstrates the bug: http://emacs-primer.branchable.com/bugs/Text_Editing_Essentials/

Note that the second table is rendered properly while the first and
last tables are clobbered. I expect the first and last table to be
rendered without any header rows.

This bug is forwarded from http://www.branchable.com/bugs/Tables_in_Multimarkdown_are_not_rendered_properly/

Here is the markdown content.

[[!tag essentials]]

# Keys

| Notation | How to read it | Where on the keyboard |
| C        | CONTROL key    | CTRL, CTL             |
| M        | META key       | EDIT or ALT           |

# Key Notation

| Notation | What to do                                         |
| `C-x`    | Hold the CONTROL key and type character `x`        |
| `M-x`    | Hold the META or EDIT or ALT key down and type `x` |
|          | Press and release the ESC key and type `x`         |

# Save My Soul

| Task       | Binding   |
| SOS        | `C-g`     |
| Exit Emacs | `C-x C-c` |

This is what is reported when I commit the above page.

emacsprimer@debian-8:~/src/emacs-primer/bugs$ git push
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 616 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: From /home/b-emacs-primer/source
remote:    41f0c60..875f459  master     -> origin/master
remote: Use of uninitialized value $body in split at /usr/share/perl5/Text/MultiMarkdown.pm line 1140.
remote: Use of uninitialized value $body in split at /usr/share/perl5/Text/MultiMarkdown.pm line 1140.
remote: Use of uninitialized value $body in split at /usr/share/perl5/Text/MultiMarkdown.pm line 1140.
remote: Use of uninitialized value $body in split at /usr/share/perl5/Text/MultiMarkdown.pm line 1140.
remote: Use of uninitialized value $body in split at /usr/share/perl5/Text/MultiMarkdown.pm line 1140.
remote: Use of uninitialized value $body in split at /usr/share/perl5/Text/MultiMarkdown.pm line 1140.
remote: Use of uninitialized value $body in split at /usr/share/perl5/Text/MultiMarkdown.pm line 1140.
@bulrush15
Copy link

Going by this link: http://fletcher.github.io/MultiMarkdown-5/tables.html, that's not a proper table. Tables have worked fine for me with Text::MultiMarkdown. The first MD row must contain table headers, the second MD row contains alignment instructions. The table data starts in row 3. A correct table would be:

# Keys

| Notation | How to read it | Where on the keyboard |
|-----------|------------------|----------------|
| C         | CONTROL key    | CTRL, CTL             |
| M        | META key       | EDIT or ALT           |

And it renders as:

Keys

Notation How to read it Where on the keyboard
C CONTROL key CTRL, CTL
M META key EDIT or ALT

I hope you can see the source of this post. And the rest of your tables:

Key Notation

Notation What to do
C-x Hold the CONTROL key and type character x
M-x Hold the META or EDIT or ALT key down and type x
Press and release the ESC key and type x

Save My Soul

Task Binding
SOS C-g
Exit Emacs C-x C-c

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

No branches or pull requests

2 participants