@asciidoctor/core 3.0.0-alpha.2 → 3.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Asciidoctor core
2
+
3
+ This package provides Asciidoctor core functionality:
4
+
5
+ * parser
6
+ * built-in converters
7
+ * extensions
8
+
9
+ ## Install
10
+
11
+ ```console
12
+ $ npm i @asciidoctor/core --save
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ Here is a simple example that converts AsciiDoc to HTML5:
18
+
19
+ **sample.js**
20
+
21
+ ```javascript
22
+ const asciidoctor = require('@asciidoctor/core')() // ①
23
+ const content = 'http://asciidoctor.org[*Asciidoctor*] ' +
24
+ 'running on https://opalrb.com[_Opal_] ' +
25
+ 'brings AsciiDoc to Node.js!'
26
+ const html = asciidoctor.convert(content) // ②
27
+ console.log(html) // ③
28
+ ```
29
+ 1. Instantiate the Asciidoctor.js library
30
+ 2. Convert AsciiDoc content to HTML5 using Asciidoctor.js
31
+ 3. Print the HTML5 output to the console
32
+
33
+ Save the file as _sample.js_ and run it using the `node` command:
34
+
35
+ ```console
36
+ $ node sample.js
37
+ ```
38
+
39
+ You should see the following output in your terminal:
40
+
41
+ ```html
42
+ <div class="paragraph">
43
+ <p><a href="http://asciidoctor.org"><strong>Asciidoctor</strong></a> running on <a href="http://opalrb.com"><em>Opal</em></a> brings AsciiDoc to Node.js!</p>
44
+ </div>
45
+ ```
46
+
47
+ If you want to know more about Asciidoctor.js, please read the [User Manual](https://asciidoctor-docs.netlify.com/asciidoctor.js/).
48
+
49
+ ## Changelog
50
+
51
+ Refer to the [CHANGELOG](https://github.com/asciidoctor/asciidoctor.js/blob/main/CHANGELOG.adoc) for a complete list of changes.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Asciidoctor.js 3.0.0-alpha.2 | MIT | https://github.com/asciidoctor/asciidoctor.js
2
+ * @license Asciidoctor.js 3.0.0-alpha.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
3
3
  */
4
4
  (function(global_object) {
5
5
  "use strict";
@@ -47598,7 +47598,7 @@ Extensions.newBlockMacroProcessor = function (name, functions) {
47598
47598
  }
47599
47599
 
47600
47600
 
47601
- var ASCIIDOCTOR_JS_VERSION = '3.0.0-alpha.2';
47601
+ var ASCIIDOCTOR_JS_VERSION = '3.0.0-alpha.4';
47602
47602
 
47603
47603
  /**
47604
47604
  * Get Asciidoctor.js version number.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Asciidoctor.js 3.0.0-alpha.2 | MIT | https://github.com/asciidoctor/asciidoctor.js
2
+ Asciidoctor.js 3.0.0-alpha.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
3
3
  */
4
4
  var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var m=0;return function(){return m<b.length?{done:!1,value:b[m++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var m="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return m?m.call(b):$jscomp.arrayIterator(b)};$jscomp.arrayFromIterator=function(b){for(var m,w=[];!(m=b.next()).done;)w.push(m.value);return w};
5
5
  $jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,m,w){b!=Array.prototype&&b!=Object.prototype&&(b[m]=w.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);
@@ -1446,5 +1446,5 @@ return a===Opal.nil?void 0:a};n.prototype.parseContentAs=function(a){this.$parse
1446
1446
  n=U.DocinfoProcessor;n.prototype.prefer=function(){this.$prefer()};n.prototype.atLocation=function(a){this.$at_location(a)};U.createPostprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("Postprocessor",a,b)};U.newPostprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createPostprocessor(a,b).$new()};U.createPreprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("Preprocessor",a,b)};U.newPreprocessor=function(a,b){1===arguments.length&&(b=a,a=null);
1447
1447
  return this.createPreprocessor(a,b).$new()};U.createTreeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("TreeProcessor",a,b)};U.newTreeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createTreeProcessor(a,b).$new()};U.createIncludeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("IncludeProcessor",a,b)};U.newIncludeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createIncludeProcessor(a,b).$new()};U.createDocinfoProcessor=
1448
1448
  function(a,b){1===arguments.length&&(b=a,a=null);return q("DocinfoProcessor",a,b)};U.newDocinfoProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createDocinfoProcessor(a,b).$new()};U.createBlockProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("BlockProcessor",a,b)};U.newBlockProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockProcessor(a,b).$new()};U.createInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("InlineMacroProcessor",
1449
- a,b)};U.newInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createInlineMacroProcessor(a,b).$new()};U.createBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("BlockMacroProcessor",a,b)};U.newBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockMacroProcessor(a,b).$new()};Opal.Asciidoctor.prototype.getVersion=function(){return"3.0.0-alpha.2"};return Opal.Asciidoctor}
1449
+ a,b)};U.newInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createInlineMacroProcessor(a,b).$new()};U.createBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return q("BlockMacroProcessor",a,b)};U.newBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockMacroProcessor(a,b).$new()};Opal.Asciidoctor.prototype.getVersion=function(){return"3.0.0-alpha.4"};return Opal.Asciidoctor}
1450
1450
  var module$build$asciidoctor_browser={};module$build$asciidoctor_browser.default=Asciidoctor$$module$build$asciidoctor_browser;
@@ -47346,7 +47346,7 @@ Extensions.newBlockMacroProcessor = function (name, functions) {
47346
47346
  }
47347
47347
 
47348
47348
 
47349
- var ASCIIDOCTOR_JS_VERSION = '3.0.0-alpha.2';
47349
+ var ASCIIDOCTOR_JS_VERSION = '3.0.0-alpha.4';
47350
47350
 
47351
47351
  /**
47352
47352
  * Get Asciidoctor.js version number.
@@ -22984,7 +22984,7 @@ Extensions.newBlockMacroProcessor = function (name, functions) {
22984
22984
  }
22985
22985
 
22986
22986
 
22987
- var ASCIIDOCTOR_JS_VERSION = '3.0.0-alpha.2';
22987
+ var ASCIIDOCTOR_JS_VERSION = '3.0.0-alpha.4';
22988
22988
 
22989
22989
  /**
22990
22990
  * Get Asciidoctor.js version number.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asciidoctor/core",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.4",
4
4
  "description": "Asciidoctor - the core library",
5
5
  "main": "dist/node/asciidoctor.js",
6
6
  "browser": "dist/browser/asciidoctor.js",
@@ -18,8 +18,6 @@
18
18
  "README.md"
19
19
  ],
20
20
  "scripts": {
21
- "postpublish": "downdoc --postpublish",
22
- "prepublishOnly": "downdoc --prepublish",
23
21
  "test:graalvm": "node tasks/graalvm.cjs",
24
22
  "test:node": "mocha spec/*/*.spec.cjs && npm run test:node:esm",
25
23
  "test:node:esm": "mocha --experimental-json-modules spec/node/asciidoctor.spec.js",
@@ -91,7 +89,6 @@
91
89
  "dirty-chai": "2.0.1",
92
90
  "documentation": "^14.0.0",
93
91
  "dot": "1.1.3",
94
- "downdoc": "^1.0.0-beta.8",
95
92
  "ejs": "3.1.8",
96
93
  "eslint": "8.31.0",
97
94
  "handlebars": "4.7.7",
package/README.adoc DELETED
@@ -1,48 +0,0 @@
1
- = Asciidoctor core
2
-
3
- This package provides Asciidoctor core functionality:
4
-
5
- - parser
6
- - built-in converters
7
- - extensions
8
-
9
- == Install
10
-
11
- $ npm i @asciidoctor/core --save
12
-
13
- == Usage
14
-
15
- Here is a simple example that converts AsciiDoc to HTML5:
16
-
17
- .sample.js
18
- [source,javascript]
19
- ----
20
- const asciidoctor = require('@asciidoctor/core')() // <1>
21
- const content = 'http://asciidoctor.org[*Asciidoctor*] ' +
22
- 'running on https://opalrb.com[_Opal_] ' +
23
- 'brings AsciiDoc to Node.js!'
24
- const html = asciidoctor.convert(content) // <2>
25
- console.log(html) // <3>
26
- ----
27
- <1> Instantiate the Asciidoctor.js library
28
- <2> Convert AsciiDoc content to HTML5 using Asciidoctor.js
29
- <3> Print the HTML5 output to the console
30
-
31
- Save the file as _sample.js_ and run it using the `node` command:
32
-
33
- $ node sample.js
34
-
35
- You should see the following output in your terminal:
36
-
37
- [source,html]
38
- ----
39
- <div class="paragraph">
40
- <p><a href="http://asciidoctor.org"><strong>Asciidoctor</strong></a> running on <a href="http://opalrb.com"><em>Opal</em></a> brings AsciiDoc to Node.js!</p>
41
- </div>
42
- ----
43
-
44
- If you want to know more about Asciidoctor.js, please read the https://asciidoctor-docs.netlify.com/asciidoctor.js/[User Manual].
45
-
46
- == Changelog
47
-
48
- Refer to the https://github.com/asciidoctor/asciidoctor.js/blob/main/CHANGELOG.adoc[CHANGELOG] for a complete list of changes.