markdown-js icon indicating copy to clipboard operation
markdown-js copied to clipboard

How can I insert a table? And a video?

Open erossini opened this issue 8 years ago • 4 comments

Hi guys, just a question about this two tags. I tried to use something link that

| Tables   |      Are      |  Cool |
|----------|:-------------:|------:|
| col 1 is |  left-aligned | $1600 |
| col 2 is |    centered   |   $12 |
| col 3 is | right-aligned |    $1 |

but it shows this table as the same (no html table).

Can I insert link to a video and show it in the page? Thank you in advance.

erossini avatar May 02 '17 13:05 erossini

I have the same issue. I have tried many different formats of table and the tests in #230 but it seems that the table has not been convert to html table through the function 'markdown.toHTML()'
So I wonder whether this md-js supports table or what is the correct markdown format?

aforwardz avatar Dec 01 '17 05:12 aforwardz

Second.

stutiredboy avatar Dec 07 '17 02:12 stutiredboy

Hi, I'm not sure if you tried the example, but you can use your example and must simply use the "Maruku" markdown dialect ... worked for me at all:

html_content = markdown.toHTML( md_content, 'Maruku');

iskrid avatar Mar 13 '18 13:03 iskrid

@iskrid you are right,I have solved my problem according you say.

bluesnail95 avatar Mar 29 '18 12:03 bluesnail95