mProjectsCode / obsidian-js-engine-plugin

https://www.moritzjung.dev/obsidian-js-engine-plugin-docs/
GNU General Public License v3.0
73 stars 5 forks source link

The plugin does not have any related examples, only interfaces. I tried but failed #4

Closed zhoulonghao520 closed 10 months ago

zhoulonghao520 commented 10 months ago

image

mProjectsCode commented 10 months ago

the second argument of createTable expects a two dimensional array, see the docs.

let mdBuilder = engine.markdown.createBuilder();

mdBuilder.createTable(["Column 1", "Column 2"], [
    ["data 1", "**data 2**"],
    ["data 3", "data 4"],
]);

return mdBuilder;