@asciidoctor/core 2.2.6 → 3.0.0-alpha.3

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.
@@ -1,4 +1,4 @@
1
- # Asciidoctor core
1
+ = Asciidoctor core
2
2
 
3
3
  This package provides Asciidoctor core functionality:
4
4
 
@@ -6,27 +6,27 @@ This package provides Asciidoctor core functionality:
6
6
  - built-in converters
7
7
  - extensions
8
8
 
9
- ## Install
9
+ == Install
10
10
 
11
- $ npm i @asciidoctor/core --save
11
+ $ npm i @asciidoctor/core --save
12
12
 
13
- ## Usage
13
+ == Usage
14
14
 
15
15
  Here is a simple example that converts AsciiDoc to HTML5:
16
16
 
17
- **sample.js**
18
-
19
- ```javascript
17
+ .sample.js
18
+ [source,javascript]
19
+ ----
20
20
  const asciidoctor = require('@asciidoctor/core')() // <1>
21
21
  const content = 'http://asciidoctor.org[*Asciidoctor*] ' +
22
22
  'running on https://opalrb.com[_Opal_] ' +
23
23
  'brings AsciiDoc to Node.js!'
24
24
  const html = asciidoctor.convert(content) // <2>
25
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
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
30
 
31
31
  Save the file as _sample.js_ and run it using the `node` command:
32
32
 
@@ -34,14 +34,15 @@ Save the file as _sample.js_ and run it using the `node` command:
34
34
 
35
35
  You should see the following output in your terminal:
36
36
 
37
- ```html
37
+ [source,html]
38
+ ----
38
39
  <div class="paragraph">
39
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>
40
41
  </div>
41
- ```
42
+ ----
42
43
 
43
- If you want to know more about Asciidoctor.js, please read the [User Manual](https://asciidoctor-docs.netlify.com/asciidoctor.js/).
44
+ If you want to know more about Asciidoctor.js, please read the https://asciidoctor-docs.netlify.com/asciidoctor.js/[User Manual].
44
45
 
45
- ## Changelog
46
+ == Changelog
46
47
 
47
- Refer to the [CHANGELOG](https://github.com/asciidoctor/asciidoctor.js/blob/master/CHANGELOG.adoc) for a complete list of changes.
48
+ Refer to the https://github.com/asciidoctor/asciidoctor.js/blob/main/CHANGELOG.adoc[CHANGELOG] for a complete list of changes.