Skip to content

Commit dd5fbf4

Browse files
committed
Pass table metadata into table token
1 parent 9d72c80 commit dd5fbf4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/directives/tables.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ export class ListTable extends Directive {
4343
const tokens: Token[] = []
4444

4545
// table opening
46-
const tableOpen = this.createToken("table_open", "table", 1, { map: data.bodyMap })
46+
const tableOpen = this.createToken("table_open", "table", 1, {
47+
map: data.bodyMap,
48+
meta: { ...data.options }
49+
})
4750
if (data.options.align) {
4851
tableOpen.attrJoin("class", `align-${data.options.align}`)
4952
}

0 commit comments

Comments
 (0)