javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.07k stars 71 forks source link

Support for tables #160

Closed Nixxen closed 2 years ago

Nixxen commented 2 years ago

I am guessing this has to do with the segments being treated as code blocks and markdown not running any more processing on them.

I am trying to do something like the following:

title: Rule 5.5.5
After $n$ selections of *combinations* or *sequences* with or without replacement, the formulas are as follows:
- *For all of the following: If the quantity has 2 kinds, the quantity has $N$ elements, $S = S_1$* of the first kind, and $p = p_1$, the probability for $k$ of the selections being of the kind and $n-k$ being of the second kind is:
|                               |         With replacement         |                                                   Without replacement                                                   |
|:-----------------------------:|:--------------------------------:|:-----------------------------------------------------------------------------------------------------------------------:|
|    Sequence <br/>(Ordered)    |         $p^k(1-p)^{n-k}$         |                                       $\frac{{{N-n}\choose{S-k}}}{{N}\choose{S}}$                                       |
| Combination <br/> (Unordered) | ${{n}\choose{k}}p^{k(1-p)^{n-k}$ | $\frac{{{S}\choose{k}}{{N-s}\choose{n-k}}}{{{N}\choose{n}}}=\frac{{{N-n}\choose{S-k}}{{n}\choose{k}}}{{{N}\choose{S}}}$ | 

Is there any way to make this work currently? If not, I'd like to suggest MD table processing as a feature.

Nixxen commented 2 years ago

Just 6 minutes after posting this, I discovered I needed to have a space above the table to get it to render. My bad.