uniorg-rehype
Advanced tools
Comparing version 0.1.2 to 0.1.3
import uniorg2rehype from './unified-org-rehype'; | ||
export { orgToHast } from './org-to-hast'; | ||
export default uniorg2rehype; | ||
export = uniorg2rehype; |
@@ -5,8 +5,4 @@ "use strict"; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.orgToHast = void 0; | ||
const unified_org_rehype_1 = __importDefault(require("./unified-org-rehype")); | ||
var org_to_hast_1 = require("./org-to-hast"); | ||
Object.defineProperty(exports, "orgToHast", { enumerable: true, get: function () { return org_to_hast_1.orgToHast; } }); | ||
exports.default = unified_org_rehype_1.default; | ||
module.exports = unified_org_rehype_1.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "uniorg-rehype", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "uniorg plugin to transform to rehype", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"uniorg": "^0.1.1", | ||
"uniorg-parse": "^0.1.2" | ||
"uniorg-parse": "^0.1.3" | ||
}, | ||
@@ -55,3 +55,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "3601f247302432d5c08b0b8a32f625575a51e2cf" | ||
"gitHead": "a948df5a5f6aaa67e8949e242f612b69b54dd258" | ||
} |
@@ -21,3 +21,3 @@ | ||
var createStream = require('unified-stream') | ||
var uniorgPars = require('uniorg-parse') | ||
var uniorgParse = require('uniorg-parse') | ||
var uniorg2rehype = require('uniorg-rehype') | ||
@@ -39,3 +39,13 @@ var html = require('rehype-stringify') | ||
### `orgToHast(uniorg)` | ||
Convert uniorg AST into hast. | ||
```js | ||
import { parse } from 'uniorg-parse/parser'; | ||
import { orgToHast } from 'uniorg-rehype/org-to-hast'; | ||
orgToHast(parse(`* headline`)); | ||
``` | ||
## License | ||
@@ -42,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
53
28094
379