anydoc-ruby 0.1.8-x86_64-linux → 0.2.4-x86_64-linux

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: 8c9614de094bf472aa1f1b09f6e73904896d55aaf82aea2afd619209b12dff84
4
- data.tar.gz: de3b4a76d3a8b20f297470eacf3cc98cf842a6c80ad0bb84e2224f0f935d0ddd
3
+ metadata.gz: c973d7c99a6f0d193922c0aa700c2f5b662556a9c68b83676668fc9d905b6a99
4
+ data.tar.gz: 0db2757e055006aa4177d3d2754ebe1d158bba0c52a13d865c49f3eed08b69ef
5
5
  SHA512:
6
- metadata.gz: ee42575dd6de940f7d9c8d3ec4cd0bc4739dfcbba23f97e2be683b8cdd6f6e0b7bb02aac9d632aa4f1667c2246ca73ab170c7f218f20c825f105fd7a229d3d5f
7
- data.tar.gz: 8192e8a9911a29ca026424d11389c08cb3dc2fe46e8022f105e121207ff6162f00d6eec2e5c3de8ca8f305e36f1404e4c900d5803f9a842d4ba565dc4e25d12f
6
+ metadata.gz: 1238685576e4b3cb73a412da76b9960602c9c4419dc2c60ccbd414825c11192ef1147972b48ad9cfc522efe9a437dfafefb3580c6f384598d02515b995937036
7
+ data.tar.gz: 834591c3a39efcbc2c44cefbe3368d800d907736f635b93a8b89506ebc16ce84b3d5e575825f229a96f32bc0b8a4c961a18d153ee4deda6d783727c4151856f8
Binary file
Binary file
Binary file
Binary file
@@ -32,7 +32,7 @@ module Anydoc
32
32
  #
33
33
  # @!attribute [r] kind
34
34
  # @return [Symbol] +:heading+, +:paragraph+, +:list+, +:table+,
35
- # +:block_quote+, +:code_block+, or +:rule+.
35
+ # +:block_quote+, +:code_block+, +:rule+, or +:math+.
36
36
  # @!attribute [r] level
37
37
  # @return [Integer, nil] heading: 1-6.
38
38
  # @!attribute [r] anchor
@@ -49,7 +49,8 @@ module Anydoc
49
49
  # @!attribute [r] lang
50
50
  # @return [String, nil] code_block.
51
51
  # @!attribute [r] text
52
- # @return [String, nil] code_block.
52
+ # @return [String, nil] code_block, math (LaTeX source without
53
+ # delimiters).
53
54
  class Block < Data.define(
54
55
  :kind, :level, :anchor, :content, :list, :table, :blocks, :lang, :text
55
56
  )
@@ -59,10 +60,10 @@ module Anydoc
59
60
  #
60
61
  # @!attribute [r] kind
61
62
  # @return [Symbol] +:text+, +:link+, +:image+, +:anchor+ (a zero-width
62
- # marker for an internal link target at this position), +:note_ref+, or
63
- # +:line_break+.
63
+ # marker for an internal link target at this position), +:note_ref+,
64
+ # +:line_break+, +:math+, or +:checkbox+.
64
65
  # @!attribute [r] text
65
- # @return [String, nil] text.
66
+ # @return [String, nil] text; math (LaTeX source without delimiters).
66
67
  # @!attribute [r] style
67
68
  # @return [Style, nil] text.
68
69
  # @!attribute [r] content
@@ -78,8 +79,11 @@ module Anydoc
78
79
  # @!attribute [r] note_id
79
80
  # @return [String, nil] note_ref: the id of the note in
80
81
  # {Document#notes}.
82
+ # @!attribute [r] checked
83
+ # @return [Boolean, nil] checkbox: its state.
81
84
  class Inline < Data.define(
82
- :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id
85
+ :kind, :text, :style, :content, :target, :alt, :source, :anchor, :note_id,
86
+ :checked
83
87
  )
84
88
  end
85
89
 
@@ -141,14 +145,11 @@ module Anydoc
141
145
  #
142
146
  # @!attribute [r] blocks
143
147
  # @return [Array<Block>]
144
- # @!attribute [r] checked
145
- # @return [Boolean, nil] task-list state, when the item carries a
146
- # checkbox.
147
148
  # @!attribute [r] marker_label
148
149
  # @return [String, nil] literal marker text that overrides the list marker
149
150
  # when the source number text cannot be reproduced from the marker and
150
151
  # position alone (composite number text such as +1-a)+).
151
- class ListItem < Data.define(:blocks, :checked, :marker_label)
152
+ class ListItem < Data.define(:blocks, :marker_label)
152
153
  end
153
154
 
154
155
  # A table as a canonical grid: every logical grid position appears exactly
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Anydoc
4
4
  # The gem version, which is the version of the anydoc crate it wraps.
5
- VERSION = "0.1.8"
5
+ VERSION = "0.2.4"
6
6
  end
data/sig/anydoc.rbs CHANGED
@@ -61,7 +61,7 @@ module Anydoc
61
61
  end
62
62
 
63
63
  class Block < ::Data
64
- # :heading | :paragraph | :list | :table | :block_quote | :code_block | :rule
64
+ # :heading | :paragraph | :list | :table | :block_quote | :code_block | :rule | :math
65
65
  attr_reader kind: Symbol
66
66
  attr_reader level: Integer?
67
67
  attr_reader anchor: String?
@@ -74,7 +74,7 @@ module Anydoc
74
74
  end
75
75
 
76
76
  class Inline < ::Data
77
- # :text | :link | :image | :anchor | :note_ref | :line_break
77
+ # :text | :link | :image | :anchor | :note_ref | :line_break | :math | :checkbox
78
78
  attr_reader kind: Symbol
79
79
  attr_reader text: String?
80
80
  attr_reader style: Style?
@@ -84,6 +84,7 @@ module Anydoc
84
84
  attr_reader source: ImageSource?
85
85
  attr_reader anchor: String?
86
86
  attr_reader note_id: String?
87
+ attr_reader checked: bool?
87
88
  end
88
89
 
89
90
  class Style < ::Data
@@ -122,7 +123,6 @@ module Anydoc
122
123
 
123
124
  class ListItem < ::Data
124
125
  attr_reader blocks: Array[Block]
125
- attr_reader checked: bool?
126
126
  attr_reader marker_label: String?
127
127
  end
128
128
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anydoc-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.4
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Jan Sterba
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-08-11 00:00:00.000000000 Z
12
+ date: 2026-08-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ruby bindings for the anydoc Rust crate. Converts Word, PowerPoint, Excel,
15
15
  OpenDocument, RTF, EPUB, CSV, and PDF documents into clean GitHub-Flavored Markdown,