miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.91k stars 258 forks source link

Table doesn't render correctly #65

Open abishekrsrikaanth opened 6 years ago

abishekrsrikaanth commented 6 years ago

I am trying to render a markdown table on a github readme using this library and it doesn't render correctly.

https://raw.githubusercontent.com/championswimmer/vuex-persist/master/README.md

I tried to do copy that markdown content for the table to the online demo and it doesn't render correctly there as well. Below is the markdown content

| Property      | Type                                  | Description                                                                                                                           |
|-------------- |------------------------------------   |------------------------------------------------------------------------------------------------------------------------------------   |
| key           | string                                | The key to store the state in the storage <br>_**Default: 'vuex'**_                                                                                           |
| storage       | Storage (Web API)                     | localStorage, sessionStorage, localforage or your custom Storage object. <br>Must implement getItem, setItem, clear etc. <br> _**Default: window.localStorage**_                              |
| saveState     | function<br> (key, state[, storage])      | If not using storage, this custom function handles <br>saving state to persistence                                                        |
| restoreState  | function<br> (key[, storage]) => state    | If not using storage, this custom function handles <br>retrieving state from storage                                                      |
| reducer       | function<br> (state) => object            | State reducer. reduces state to only those values you want to save. <br>By default, saves entire state                                    |
| filter        | function<br> (mutation) => boolean        | Mutation filter. Look at `mutation.type` and return true <br>for only those ones which you want a persistence write to be triggered for. <br> Default returns true for all mutations  |
| modules       | string[]                                  | List of modules you want to persist. (Do not write your own reducer if you want to use this)      |
| asyncStorage  | boolean                                   | Denotes if the store uses Promises (like localforage) or not <br>_**Default: false**_

This table does render correctly on github page though: https://github.com/championswimmer/vuex-persist/blob/master/README.md#constructor-parameters--

abishekrsrikaanth commented 6 years ago

It looks like the latest version of the markdown-it seems to support this. Do you plan to update to the latest version of markdown-it?