metanorma-core 0.2.8 → 0.2.9
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.
- checksums.yaml +4 -4
- data/lib/metanorma/core/version.rb +1 -1
- data/lib/metanorma/input/asciidoc.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca8a43da82e11d899c6bf138d835c93e88f58f6d938fac155b1e6a8f40d15417
|
|
4
|
+
data.tar.gz: 4a6ed27f23eb9e04c054fa012c477ef480fdb6bace05a1fec47b76d53a76c7fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39a68ba5fed73c32c349f305897037b06a8e5a5aafe0b8a98b44569dda07e77049252109b84a1156daf4f535bddc040829ce79014f9a3190cbf85697f767360e
|
|
7
|
+
data.tar.gz: c861798c3b4d020ff06e332a5dbbcc990a0e9623c1e6adab47c515682bd8064bc83494e21e2b52efb1ecb297aae34e2ae781ff090a2fe9e1a312c751484b1713
|
|
@@ -24,9 +24,18 @@ module Metanorma
|
|
|
24
24
|
# resolves relative asset paths against and jails includes
|
|
25
25
|
# within; defaults to the process working directory).
|
|
26
26
|
# @return [String] Asciidoctor convert output.
|
|
27
|
+
# Enable STEM syntax handling (`stem:[...]`, `[stem]` blocks) for
|
|
28
|
+
# every compile, without deciding the STEM flavor on the
|
|
29
|
+
# document's behalf. The trailing `@` marks the attribute as a
|
|
30
|
+
# soft set: it applies only when the document itself does not
|
|
31
|
+
# carry a `:stem:` attribute entry. A hard set would clobber the
|
|
32
|
+
# document's `:stem: latexmath` with Asciidoctor's empty default,
|
|
33
|
+
# forcing every stem through the AsciiMath parser.
|
|
34
|
+
STEM_ENABLE_ATTR = "stem@".freeze
|
|
35
|
+
|
|
27
36
|
def process(file, filename, type, options = {})
|
|
28
37
|
require "asciidoctor"
|
|
29
|
-
attrs = ["nodoc",
|
|
38
|
+
attrs = ["nodoc", STEM_ENABLE_ATTR, "docfile=#{filename}",
|
|
30
39
|
"output_dir=#{options[:output_dir]}"]
|
|
31
40
|
# The converter reads novalid as a document ATTRIBUTE; the bare
|
|
32
41
|
# Asciidoctor option never reaches it, so --no-valid silently
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|