koka-lang / madoko

Madoko is a fast markdown processor for high quality academic and technical articles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tables in environments

RustanLeino opened this issue · comments

I'm trying to put a table into an environment I've defined, but my text is not turned into a table there.

Here's my environment:

answer-format : **Answer&theorem-endperiod;** &theorem-caption;

Answer {
  before: '[&answer-format;]{.answer-before}';
  display: block;
  margin: 1ex 0pt;
  padding-left: 1em;
  border-left: 0.25em brown solid; 
  breakable: true;
}

And then I try:

~ Answer

|    | x holds                     | y holds            |
+----+-----------------------------+--------------------|
| a) | yes                         | yes                |
| b) | yes                         | no                 |
| c) | yes                         | no                 |
| d) | no                          | yes                |
| e) | no                          | no                 |
| f) | no                          | no                 |
| g) | yes                         | yes                |

~

What I get in my HTML: :(

Answer.
| | x holds | y holds | +—-+—————————–+——————–| | a) | yes | yes | | b) | yes | no | | c) | yes | no | | d) | no | yes | | e) | no | no | | f) | no | no | | g) | yes | yes |