@antora/document-converter 3.1.2 → 3.2.0-alpha.2

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 CHANGED
@@ -9,4 +9,4 @@ Its site generator aggregates documents from versioned content repositories and
9
9
 
10
10
  Copyright (C) 2017-present [OpenDevise Inc.](https://opendevise.com) and the [Antora Project](https://antora.org).
11
11
 
12
- Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).
12
+ Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).
@@ -1,5 +1,7 @@
1
1
  'use strict'
2
2
 
3
+ const $unsafe = Symbol.for('unsafe')
4
+
3
5
  /**
4
6
  * Converts the contents on the specified file from AsciiDoc to embedded HTML.
5
7
  *
@@ -24,7 +26,7 @@ function convertDocument (file, contentCatalog = undefined, asciidocConfig = {})
24
26
  const {
25
27
  extractAsciiDocMetadata = requireAsciiDocLoader().extractAsciiDocMetadata,
26
28
  loadAsciiDoc = requireAsciiDocLoader(),
27
- } = this ? this.getFunctions(false) : {}
29
+ } = this ? this.getFunctions($unsafe) : {}
28
30
  const doc = loadAsciiDoc(file, contentCatalog, asciidocConfig)
29
31
  if (!file.asciidoc) {
30
32
  file.asciidoc = extractAsciiDocMetadata(doc)
@@ -2,6 +2,8 @@
2
2
 
3
3
  const _convertDocument = require('./convert-document')
4
4
 
5
+ const $unsafe = Symbol.for('unsafe')
6
+
5
7
  /**
6
8
  * Converts the contents of publishable pages with the media type text/asciidoc
7
9
  * in the content catalog to embedded HTML.
@@ -29,7 +31,7 @@ function convertDocuments (contentCatalog, siteAsciiDocConfig = {}) {
29
31
  convertDocument = _convertDocument,
30
32
  extractAsciiDocMetadata = requireAsciiDocLoader().extractAsciiDocMetadata,
31
33
  loadAsciiDoc = requireAsciiDocLoader(),
32
- } = this ? this.getFunctions(false) : {}
34
+ } = this ? this.getFunctions($unsafe) : {}
33
35
  const mainAsciiDocConfigs = new Map()
34
36
  contentCatalog.getComponents().forEach(({ name: component, versions }) => {
35
37
  versions.forEach(({ version, asciidoc }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/document-converter",
3
- "version": "3.1.2",
3
+ "version": "3.2.0-alpha.2",
4
4
  "description": "Converts AsciiDoc documents to embeddable HTML for use in an Antora documentation pipeline.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -21,7 +21,7 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@antora/asciidoc-loader": "3.1.2"
24
+ "@antora/asciidoc-loader": "3.2.0-alpha.2"
25
25
  },
26
26
  "engines": {
27
27
  "node": ">=16.0.0"