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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b7c80959a3e2a3b6e431468e8503be73bb8137da33dd9307939319b3c0ede25
4
- data.tar.gz: 94dd09c4726c7ef72c76c5c955301838677ce1076f002a90481ef3b60fb22781
3
+ metadata.gz: ca8a43da82e11d899c6bf138d835c93e88f58f6d938fac155b1e6a8f40d15417
4
+ data.tar.gz: 4a6ed27f23eb9e04c054fa012c477ef480fdb6bace05a1fec47b76d53a76c7fc
5
5
  SHA512:
6
- metadata.gz: e2dd1459024f781c1dab4fa44782f34d13d19dbef1cfbceb541371000e3432b6bf4093da2d1e7bcd73a9f44914c49780b1253565ab6bbc8118e693820c284111
7
- data.tar.gz: 8547c4a5eb91f486bcd9195d62ed880cef3d6c54fdc16c1558ffa52473d2daba54f5935c1019996852a02fa0116b4fbf4b23e83428ee1f1a35d0c8d6b0295a35
6
+ metadata.gz: 39a68ba5fed73c32c349f305897037b06a8e5a5aafe0b8a98b44569dda07e77049252109b84a1156daf4f535bddc040829ce79014f9a3190cbf85697f767360e
7
+ data.tar.gz: c861798c3b4d020ff06e332a5dbbcc990a0e9623c1e6adab47c515682bd8064bc83494e21e2b52efb1ecb297aae34e2ae781ff090a2fe9e1a312c751484b1713
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Core
3
- VERSION = "0.2.8".freeze
3
+ VERSION = "0.2.9".freeze
4
4
  end
5
5
  end
@@ -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", "stem", "docfile=#{filename}",
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.8
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-10 00:00:00.000000000 Z
11
+ date: 2026-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor