Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
First version of algo for indented lists
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineduban committed Dec 15, 2017
1 parent 6ae64e2 commit 88bc63c
Show file tree
Hide file tree
Showing 14 changed files with 1,131 additions and 1,106 deletions.
12 changes: 9 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module.exports = {
fromDelta: require('./src/fromDelta'),
toDelta: require('./src/toDelta'),
const fromDelta = require("./src/fromDelta");

module.exports = toMdAST;

function toMdAST() {
this.Parser = function(file) {
const result = fromDelta({})(JSON.parse(file));
return result;
};
}
36 changes: 26 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"dependencies": {
"commonmark": "^0.26.0",
"lodash": "^4.16.4",
"print-tree": "^0.1.4",
"quill-delta": "^3.4.0",
"remark": "^8.0.0",
"remark-parse": "^4.0.0",
Expand Down
81 changes: 0 additions & 81 deletions src/fromDelta.converters.js

This file was deleted.

Loading

0 comments on commit 88bc63c

Please sign in to comment.