@uniorgjs/orgx
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,2 +7,3 @@ /** | ||
* @typedef {import('./plugin/recma-jsx-rewrite.js').RecmaJsxRewriteOptions} RecmaJsxRewriteOptions | ||
* @typedef {import('uniorg-parse/lib/parse-options').ParseOptions} UniorgParseOptions | ||
* @typedef {import('uniorg-rehype').Options} UniorgRehypeOptions | ||
@@ -15,6 +16,2 @@ * | ||
* Whether to compile to a whole program or a function body.. | ||
* @property {Array<string>} [mdExtensions] | ||
* Extensions (with `.`) for markdown. | ||
* @property {Array<string>} [mdxExtensions] | ||
* Extensions (with `.`) for MDX. | ||
* @property {PluggableList} [recmaPlugins] | ||
@@ -26,2 +23,4 @@ * List of recma (esast, JavaScript) plugins. | ||
* List of rehype (hast, HTML) plugins. | ||
* @property {UniorgParseOptions} [uniorgParseOptions] | ||
* Options to pass to `uniorg-parse`. | ||
* @property {UniorgRehypeOptions} [uniorgRehypeOptions] | ||
@@ -48,4 +47,4 @@ * Options to pass through to `uniorg-rehype`. | ||
* | ||
* 1. Parse MDX (serialized markdown with embedded JSX, ESM, and expressions) | ||
* 2. Transform through uniorg (mdast), rehype (hast), and recma (esast) | ||
* 1. Parse Org | ||
* 2. Transform through uniorg (orgast), rehype (hast), and recma (esast) | ||
* 3. Serialize as JavaScript | ||
@@ -62,6 +61,7 @@ * | ||
providerImportSource, | ||
recmaPlugins, | ||
rehypePlugins, | ||
uniorgParseOptions = {}, | ||
uniorgPlugins, | ||
uniorgRehypeOptions = {}, | ||
rehypePlugins, | ||
recmaPlugins, | ||
SourceMapGenerator, | ||
@@ -71,5 +71,4 @@ ...rest | ||
const pipeline = unified().use(uniorgParse); | ||
pipeline | ||
const pipeline = unified() | ||
.use(uniorgParse, uniorgParseOptions) | ||
.use(uniorgPlugins || []) | ||
@@ -76,0 +75,0 @@ .use(uniorgRehype, { |
{ | ||
"name": "@uniorgjs/orgx", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Org-mode to JS compiler", | ||
@@ -14,6 +14,2 @@ "type": "module", | ||
}, | ||
"scripts": { | ||
"build": "rm -rf ./types && tsc -p tsconfig.build.json", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"repository": { | ||
@@ -46,3 +42,5 @@ "type": "git", | ||
}, | ||
"gitHead": "c92b8d9026bdffa7894e167c251ec86f6276b7f9" | ||
} | ||
"scripts": { | ||
"build": "rm -rf ./types && tsc -p tsconfig.build.json" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152635