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 +4 -4
- data/lib/anydoc/3.2/anydoc.so +0 -0
- data/lib/anydoc/3.3/anydoc.so +0 -0
- data/lib/anydoc/3.4/anydoc.so +0 -0
- data/lib/anydoc/4.0/anydoc.so +0 -0
- data/lib/anydoc/document.rb +11 -10
- data/lib/anydoc/version.rb +1 -1
- data/sig/anydoc.rbs +3 -3
- 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: c973d7c99a6f0d193922c0aa700c2f5b662556a9c68b83676668fc9d905b6a99
|
|
4
|
+
data.tar.gz: 0db2757e055006aa4177d3d2754ebe1d158bba0c52a13d865c49f3eed08b69ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1238685576e4b3cb73a412da76b9960602c9c4419dc2c60ccbd414825c11192ef1147972b48ad9cfc522efe9a437dfafefb3580c6f384598d02515b995937036
|
|
7
|
+
data.tar.gz: 834591c3a39efcbc2c44cefbe3368d800d907736f635b93a8b89506ebc16ce84b3d5e575825f229a96f32bc0b8a4c961a18d153ee4deda6d783727c4151856f8
|
data/lib/anydoc/3.2/anydoc.so
CHANGED
|
Binary file
|
data/lib/anydoc/3.3/anydoc.so
CHANGED
|
Binary file
|
data/lib/anydoc/3.4/anydoc.so
CHANGED
|
Binary file
|
data/lib/anydoc/4.0/anydoc.so
CHANGED
|
Binary file
|
data/lib/anydoc/document.rb
CHANGED
|
@@ -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 +:
|
|
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+,
|
|
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, :
|
|
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
|
data/lib/anydoc/version.rb
CHANGED
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.
|
|
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-
|
|
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,
|