redbug312 / markdown-it-multimd-table

Multimarkdown table syntax plugin for markdown-it markdown parser
MIT License
144 stars 37 forks source link

Can get RowSpan to work #68

Closed orefalo closed 4 months ago

orefalo commented 4 months ago

I can't get the rowspan working.. am I missing anything obvious?

import plantuml from "markdown-it-plantuml-ex2";
import multimd from "markdown-it-multimd-table";
import markit from "markdown-it";

const md = markit();

md.use(multimd),
  {
    multiline: false,
    rowspan: true,
    headerless: false,
    multibody: false,
    aotolabel: true,
  };
md.use(plantuml);

var table=  "|Stage | Direct Products | ATP Yields|\n"+
  "|----| --------------| ---------|\n"+
  "|Glycolysis | 2 ATP | rfrf |\n"+
    "|^^| 2 NADH | 3--5 ATP |\n" +
    "|^^| 2 NADH | 3--5 ATP |\n"

console.log(md.render(table));
orefalo commented 4 months ago

nevermind, found my problem