Skip to content

This is a js library to convert html to ENML, Evernote's XHTML format

Notifications You must be signed in to change notification settings

jroboyd/enmlOfHtml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enmlOfHtml

This is a js library to convert HTML to ENML, Evernote's XHTML format This is what powered Cheeatz to save rendered Gist tags to Evernote

###Explained The API is simple but the whole idea is little bit more complex then its name, so please read this Blog Post

This library is insipired by & designed to be used with berryboy's enml-js I put it as separate project at the moment as there is additional complexity and the style may not align.

At the moment hacking the source code is expected.

###Usage

var enmlOfHtmljs = require('enmlOfHtml');

var html = '<html><p>put html here</p></html>'

//ENML is valid ENML that you can send to evernote for creation
enmlOfHtmljs.ENMLOfHTML(html,function(err,ENML){
	console.log(ENML);
});

or put options
`css` and `defaultDomain` is supported
var options={
	css: 'put actual css you got in stylesheet and want to be inlined here',
	defaultDomain:'will be used for replacing href or src with relative path as values'
}

###Libraries

  • enmljs
  • Styliner
  • resanitize

###Dev

####Test written in mocha / chai style

###TODO

  • as requirejs module

About

This is a js library to convert html to ENML, Evernote's XHTML format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%