diff options
Diffstat (limited to 'packages/gitbook-asciidoc/lib/page.js')
-rwxr-xr-x | packages/gitbook-asciidoc/lib/page.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/gitbook-asciidoc/lib/page.js b/packages/gitbook-asciidoc/lib/page.js new file mode 100755 index 0000000..2bcfe61 --- /dev/null +++ b/packages/gitbook-asciidoc/lib/page.js @@ -0,0 +1,17 @@ +var Q = require('q'); +var _ = require('lodash'); + +var convert = require('./utils/convert'); + +function parsePage(src) { + return { + sections: [ + { + type: "normal", + content: convert(src) + } + ] + }; +} + +module.exports = parsePage; |