Skip to content

gingkoapp/export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gingko Export

Export Gingko tree to specific format. Available as component and node module.

Example

var gingkoExport = require('gingko-export');
var cards = app.get('cards').toJSON();

var html = gingkoExport(cards, { format: 'html' });
console.log(html); // cards in html format

API

gingkoExport(cards, options, [markedOptions])

cards is an array ob objects. Available options:

  • format(required) - txt, html, impress
  • column - all columns or only specific one
  • cardId - export subtree

Use markedOptions to pass specific options for marked.

TODO

  • should have .use concept
  • sort and filter are tasks for different modules.

About

Export gingko tree

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •