Coder Social home page Coder Social logo

enmlofhtml's Introduction

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

enmlofhtml's People

Contributors

debuggingfuture avatar

Watchers

James Cloos avatar Inno avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.