Skip to content

deepjs/kroked clients : custom marked parser (markdown) with macros support

License

Notifications You must be signed in to change notification settings

deepjs/deep-marked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deep-marked

Client for kroked : Markdown with macros.

Clients

Clients will load markdown documents (kroked flavoured), compile them and keep them in cache (deep media cache) for further usage.

Two implementations are there for the moment : jquery/ajax or nodejs/fs. Under nodejs, there is some file watching that update cache if file change.

Browser (jq-ajax) example :

require("deep-marked/lib/jq-ajax"); // load deep.marked : contains language definition
deep.marked.jqajax("myProtocol");
//...
deep.nodes("myProtocol::/my/markdown/file.mkd").run(null, { context:{ vars:true }}).log();
// will output the result

Nodejs (fs) example :

require("deep-marked/lib/nodejs"); // load deep.marked : contains language definition
deep.marked.nodejs("myProtocol");
//...
deep.nodes("myProtocol::/my/markdown/file.mkd").run(null, { context:{ vars:true }}).log();
// will output the result

Licence

LGPL 3.0

About

deepjs/kroked clients : custom marked parser (markdown) with macros support

Resources

License

Stars

Watchers

Forks

Packages

No packages published