html-to-markdown 3.10.6 → 3.11.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.
data/sig/types.rbs CHANGED
@@ -1,376 +1,373 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:f44000653901d10b61e9069d2e901a11b70b0e643ba63d75f2222729c924ae82
2
+ # alef:hash:e6f791251806bd44f13bfb0ace5c19ca9043291d0a9168044506f4b30cc5d7cc
3
3
  # To regenerate: alef generate
4
- # To verify freshness: alef verify --exit-code
4
+ # To verify freshness: alef verify
5
5
 
6
6
  module HtmlToMarkdown
7
7
 
8
- VERSION: String
9
-
10
- type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Float | bool | nil
11
-
12
- class DocumentMetadata
13
- attr_accessor title: String?
14
- attr_accessor description: String?
15
- attr_accessor keywords: Array[String]?
16
- attr_accessor author: String?
17
- attr_accessor canonical_url: String?
18
- attr_accessor base_href: String?
19
- attr_accessor language: String?
20
- attr_accessor text_direction: TextDirection?
21
- attr_accessor open_graph: Hash[String, String]?
22
- attr_accessor twitter_card: Hash[String, String]?
23
- attr_accessor meta_tags: Hash[String, String]?
24
-
25
- def initialize: (?title: String, ?description: String, ?keywords: Array[String], ?author: String, ?canonical_url: String, ?base_href: String, ?language: String, ?text_direction: TextDirection, ?open_graph: Hash[String, String], ?twitter_card: Hash[String, String], ?meta_tags: Hash[String, String]) -> void
26
- end
27
-
28
- class HeaderMetadata
29
- attr_reader level: Integer
30
- attr_reader text: String
31
- attr_reader id: String
32
- attr_reader depth: Integer
33
- attr_reader html_offset: Integer
8
+ VERSION: String
9
+
10
+ type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Float | bool | nil
11
+
12
+ class DocumentMetadata
13
+ attr_reader title: String?
14
+ attr_reader description: String?
15
+ attr_reader keywords: Array[String]
16
+ attr_reader author: String?
17
+ attr_reader canonical_url: String?
18
+ attr_reader base_href: String?
19
+ attr_reader language: String?
20
+ attr_reader text_direction: TextDirection?
21
+ attr_reader open_graph: Hash[String, String]
22
+ attr_reader twitter_card: Hash[String, String]
23
+ attr_reader meta_tags: Hash[String, String]
24
+
25
+ def initialize: (?title: String, ?description: String, ?keywords: Array[String], ?author: String, ?canonical_url: String, ?base_href: String, ?language: String, ?text_direction: TextDirection, ?open_graph: Hash[String, String], ?twitter_card: Hash[String, String], ?meta_tags: Hash[String, String]) -> void
26
+ end
27
+
28
+ class HeaderMetadata
29
+ attr_reader level: Integer
30
+ attr_reader text: String
31
+ attr_reader id: String?
32
+ attr_reader depth: Integer
33
+ attr_reader html_offset: Integer
34
34
 
35
35
  def initialize: (level: Integer, text: String, ?id: String, depth: Integer, html_offset: Integer) -> void
36
36
  def is_valid: () -> bool
37
- end
37
+ end
38
38
 
39
- class LinkMetadata
40
- attr_reader href: String
41
- attr_reader text: String
42
- attr_reader title: String
43
- attr_reader link_type: LinkType
39
+ class LinkMetadata
40
+ attr_reader href: String
41
+ attr_reader text: String
42
+ attr_reader title: String?
43
+ attr_reader link_type: LinkType
44
44
  attr_reader rel: Array[String]
45
45
  attr_reader attributes: Hash[String, String]
46
46
 
47
- def initialize: (href: String, text: String, ?title: String, link_type: LinkType, rel: Array[String], attributes: Hash[String, String]) -> void
48
- end
47
+ def initialize: (href: String, text: String, ?title: String, link_type: LinkType, rel: Array[String], attributes: Hash[String, String]) -> void
48
+ end
49
49
 
50
- class ImageMetadata
51
- attr_reader src: String
52
- attr_reader alt: String
53
- attr_reader title: String
54
- attr_reader dimensions: ImageDimensions
55
- attr_reader image_type: ImageType
50
+ class ImageMetadata
51
+ attr_reader src: String
52
+ attr_reader alt: String?
53
+ attr_reader title: String?
54
+ attr_reader dimensions: ImageDimensions?
55
+ attr_reader image_type: ImageType
56
56
  attr_reader attributes: Hash[String, String]
57
57
 
58
- def initialize: (src: String, ?alt: String, ?title: String, ?dimensions: ImageDimensions, image_type: ImageType, attributes: Hash[String, String]) -> void
59
- end
58
+ def initialize: (src: String, ?alt: String, ?title: String, ?dimensions: ImageDimensions, image_type: ImageType, attributes: Hash[String, String]) -> void
59
+ end
60
60
 
61
- class StructuredData
62
- attr_reader data_type: StructuredDataType
63
- attr_reader raw_json: String
64
- attr_reader schema_type: String
61
+ class StructuredData
62
+ attr_reader data_type: StructuredDataType
63
+ attr_reader raw_json: String
64
+ attr_reader schema_type: String?
65
65
 
66
66
  def initialize: (data_type: StructuredDataType, raw_json: String, ?schema_type: String) -> void
67
- end
68
-
69
- class HtmlMetadata
70
- attr_accessor document: DocumentMetadata?
71
- attr_accessor headers: Array[HeaderMetadata]?
72
- attr_accessor links: Array[LinkMetadata]?
73
- attr_accessor images: Array[ImageMetadata]?
74
- attr_accessor structured_data: Array[StructuredData]?
75
-
76
- def initialize: (?document: DocumentMetadata, ?headers: Array[HeaderMetadata], ?links: Array[LinkMetadata], ?images: Array[ImageMetadata], ?structured_data: Array[StructuredData]) -> void
77
- end
78
-
79
- class ConversionOptions
80
- attr_accessor heading_style: HeadingStyle?
81
- attr_accessor list_indent_type: ListIndentType?
82
- attr_accessor list_indent_width: Integer?
83
- attr_accessor bullets: String?
84
- attr_accessor strong_em_symbol: String?
85
- attr_accessor escape_asterisks: bool?
86
- attr_accessor escape_underscores: bool?
87
- attr_accessor escape_misc: bool?
88
- attr_accessor escape_ascii: bool?
89
- attr_accessor code_language: String?
90
- attr_accessor autolinks: bool?
91
- attr_accessor default_title: bool?
92
- attr_accessor br_in_tables: bool?
93
- attr_accessor compact_tables: bool?
94
- attr_accessor highlight_style: HighlightStyle?
95
- attr_accessor extract_metadata: bool?
96
- attr_accessor whitespace_mode: WhitespaceMode?
97
- attr_accessor strip_newlines: bool?
98
- attr_accessor wrap: bool?
99
- attr_accessor wrap_width: Integer?
100
- attr_accessor convert_as_inline: bool?
101
- attr_accessor sub_symbol: String?
102
- attr_accessor sup_symbol: String?
103
- attr_accessor newline_style: NewlineStyle?
104
- attr_accessor code_block_style: CodeBlockStyle?
105
- attr_accessor keep_inline_images_in: Array[String]?
106
- attr_accessor preprocessing: PreprocessingOptions?
107
- attr_accessor encoding: String?
108
- attr_accessor debug: bool?
109
- attr_accessor strip_tags: Array[String]?
110
- attr_accessor preserve_tags: Array[String]?
111
- attr_accessor skip_images: bool?
112
- attr_accessor url_escape_style: UrlEscapeStyle?
113
- attr_accessor link_style: LinkStyle?
114
- attr_accessor output_format: OutputFormat?
115
- attr_accessor include_document_structure: bool?
116
- attr_accessor extract_images: bool?
117
- attr_accessor max_image_size: Integer?
118
- attr_accessor capture_svg: bool?
119
- attr_accessor infer_dimensions: bool?
120
- attr_accessor max_depth: Integer?
121
- attr_accessor exclude_selectors: Array[String]?
122
- attr_accessor tier_strategy: TierStrategy?
123
- attr_accessor visitor: VisitorHandle?
124
-
125
- def initialize: (?heading_style: HeadingStyle, ?list_indent_type: ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: NewlineStyle, ?code_block_style: CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?url_escape_style: UrlEscapeStyle, ?link_style: LinkStyle, ?output_format: OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: TierStrategy, ?visitor: VisitorHandle) -> void
126
- def self.default: () -> ConversionOptions
127
- end
128
-
129
- class ConversionOptionsUpdate
130
- attr_accessor heading_style: HeadingStyle?
131
- attr_accessor list_indent_type: ListIndentType?
132
- attr_accessor list_indent_width: Integer?
133
- attr_accessor bullets: String?
134
- attr_accessor strong_em_symbol: String?
135
- attr_accessor escape_asterisks: bool?
136
- attr_accessor escape_underscores: bool?
137
- attr_accessor escape_misc: bool?
138
- attr_accessor escape_ascii: bool?
139
- attr_accessor code_language: String?
140
- attr_accessor autolinks: bool?
141
- attr_accessor default_title: bool?
142
- attr_accessor br_in_tables: bool?
143
- attr_accessor compact_tables: bool?
144
- attr_accessor highlight_style: HighlightStyle?
145
- attr_accessor extract_metadata: bool?
146
- attr_accessor whitespace_mode: WhitespaceMode?
147
- attr_accessor strip_newlines: bool?
148
- attr_accessor wrap: bool?
149
- attr_accessor wrap_width: Integer?
150
- attr_accessor convert_as_inline: bool?
151
- attr_accessor sub_symbol: String?
152
- attr_accessor sup_symbol: String?
153
- attr_accessor newline_style: NewlineStyle?
154
- attr_accessor code_block_style: CodeBlockStyle?
155
- attr_accessor keep_inline_images_in: Array[String]?
156
- attr_accessor preprocessing: PreprocessingOptionsUpdate?
157
- attr_accessor encoding: String?
158
- attr_accessor debug: bool?
159
- attr_accessor strip_tags: Array[String]?
160
- attr_accessor preserve_tags: Array[String]?
161
- attr_accessor skip_images: bool?
162
- attr_accessor url_escape_style: UrlEscapeStyle?
163
- attr_accessor link_style: LinkStyle?
164
- attr_accessor output_format: OutputFormat?
165
- attr_accessor include_document_structure: bool?
166
- attr_accessor extract_images: bool?
167
- attr_accessor max_image_size: Integer?
168
- attr_accessor capture_svg: bool?
169
- attr_accessor infer_dimensions: bool?
170
- attr_accessor max_depth: Integer?
171
- attr_accessor exclude_selectors: Array[String]?
172
- attr_accessor tier_strategy: TierStrategy?
173
- attr_accessor visitor: VisitorHandle?
174
-
175
- def initialize: (?heading_style: HeadingStyle, ?list_indent_type: ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: NewlineStyle, ?code_block_style: CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptionsUpdate, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?url_escape_style: UrlEscapeStyle, ?link_style: LinkStyle, ?output_format: OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer?, ?exclude_selectors: Array[String], ?tier_strategy: TierStrategy, ?visitor: VisitorHandle) -> void
176
- end
177
-
178
- class PreprocessingOptions
179
- attr_accessor enabled: bool?
180
- attr_accessor preset: PreprocessingPreset?
181
- attr_accessor remove_navigation: bool?
182
- attr_accessor remove_forms: bool?
67
+ end
68
+
69
+ class HtmlMetadata
70
+ attr_reader document: DocumentMetadata
71
+ attr_reader headers: Array[HeaderMetadata]
72
+ attr_reader links: Array[LinkMetadata]
73
+ attr_reader images: Array[ImageMetadata]
74
+ attr_reader structured_data: Array[StructuredData]
75
+
76
+ def initialize: (?document: DocumentMetadata, ?headers: Array[HeaderMetadata], ?links: Array[LinkMetadata], ?images: Array[ImageMetadata], ?structured_data: Array[StructuredData]) -> void
77
+ end
78
+
79
+ class ConversionOptions
80
+ attr_reader heading_style: HeadingStyle
81
+ attr_reader list_indent_type: ListIndentType
82
+ attr_reader list_indent_width: Integer
83
+ attr_reader bullets: String
84
+ attr_reader strong_em_symbol: String
85
+ attr_reader escape_asterisks: bool
86
+ attr_reader escape_underscores: bool
87
+ attr_reader escape_misc: bool
88
+ attr_reader escape_ascii: bool
89
+ attr_reader code_language: String
90
+ attr_reader autolinks: bool
91
+ attr_reader default_title: bool
92
+ attr_reader br_in_tables: bool
93
+ attr_reader compact_tables: bool
94
+ attr_reader highlight_style: HighlightStyle
95
+ attr_reader extract_metadata: bool
96
+ attr_reader whitespace_mode: WhitespaceMode
97
+ attr_reader strip_newlines: bool
98
+ attr_reader wrap: bool
99
+ attr_reader wrap_width: Integer
100
+ attr_reader convert_as_inline: bool
101
+ attr_reader sub_symbol: String
102
+ attr_reader sup_symbol: String
103
+ attr_reader newline_style: NewlineStyle
104
+ attr_reader code_block_style: CodeBlockStyle
105
+ attr_reader keep_inline_images_in: Array[String]
106
+ attr_reader preprocessing: PreprocessingOptions
107
+ attr_reader encoding: String
108
+ attr_reader debug: bool
109
+ attr_reader strip_tags: Array[String]
110
+ attr_reader preserve_tags: Array[String]
111
+ attr_reader skip_images: bool
112
+ attr_reader url_escape_style: UrlEscapeStyle
113
+ attr_reader link_style: LinkStyle
114
+ attr_reader output_format: OutputFormat
115
+ attr_reader include_document_structure: bool
116
+ attr_reader extract_images: bool
117
+ attr_reader max_image_size: Integer
118
+ attr_reader capture_svg: bool
119
+ attr_reader infer_dimensions: bool
120
+ attr_reader max_depth: Integer?
121
+ attr_reader exclude_selectors: Array[String]
122
+ attr_reader tier_strategy: TierStrategy
123
+ attr_reader visitor: VisitorHandle?
124
+
125
+ def initialize: (?heading_style: HeadingStyle, ?list_indent_type: ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: NewlineStyle, ?code_block_style: CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptions, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?url_escape_style: UrlEscapeStyle, ?link_style: LinkStyle, ?output_format: OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer, ?exclude_selectors: Array[String], ?tier_strategy: TierStrategy, ?visitor: VisitorHandle) -> void
126
+ end
127
+
128
+ class ConversionOptionsUpdate
129
+ attr_reader heading_style: HeadingStyle?
130
+ attr_reader list_indent_type: ListIndentType?
131
+ attr_reader list_indent_width: Integer?
132
+ attr_reader bullets: String?
133
+ attr_reader strong_em_symbol: String?
134
+ attr_reader escape_asterisks: bool?
135
+ attr_reader escape_underscores: bool?
136
+ attr_reader escape_misc: bool?
137
+ attr_reader escape_ascii: bool?
138
+ attr_reader code_language: String?
139
+ attr_reader autolinks: bool?
140
+ attr_reader default_title: bool?
141
+ attr_reader br_in_tables: bool?
142
+ attr_reader compact_tables: bool?
143
+ attr_reader highlight_style: HighlightStyle?
144
+ attr_reader extract_metadata: bool?
145
+ attr_reader whitespace_mode: WhitespaceMode?
146
+ attr_reader strip_newlines: bool?
147
+ attr_reader wrap: bool?
148
+ attr_reader wrap_width: Integer?
149
+ attr_reader convert_as_inline: bool?
150
+ attr_reader sub_symbol: String?
151
+ attr_reader sup_symbol: String?
152
+ attr_reader newline_style: NewlineStyle?
153
+ attr_reader code_block_style: CodeBlockStyle?
154
+ attr_reader keep_inline_images_in: Array[String]?
155
+ attr_reader preprocessing: PreprocessingOptionsUpdate?
156
+ attr_reader encoding: String?
157
+ attr_reader debug: bool?
158
+ attr_reader strip_tags: Array[String]?
159
+ attr_reader preserve_tags: Array[String]?
160
+ attr_reader skip_images: bool?
161
+ attr_reader url_escape_style: UrlEscapeStyle?
162
+ attr_reader link_style: LinkStyle?
163
+ attr_reader output_format: OutputFormat?
164
+ attr_reader include_document_structure: bool?
165
+ attr_reader extract_images: bool?
166
+ attr_reader max_image_size: Integer?
167
+ attr_reader capture_svg: bool?
168
+ attr_reader infer_dimensions: bool?
169
+ attr_reader max_depth: Integer?
170
+ attr_reader exclude_selectors: Array[String]?
171
+ attr_reader tier_strategy: TierStrategy?
172
+ attr_reader visitor: VisitorHandle?
173
+
174
+ def initialize: (?heading_style: HeadingStyle, ?list_indent_type: ListIndentType, ?list_indent_width: Integer, ?bullets: String, ?strong_em_symbol: String, ?escape_asterisks: bool, ?escape_underscores: bool, ?escape_misc: bool, ?escape_ascii: bool, ?code_language: String, ?autolinks: bool, ?default_title: bool, ?br_in_tables: bool, ?compact_tables: bool, ?highlight_style: HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: NewlineStyle, ?code_block_style: CodeBlockStyle, ?keep_inline_images_in: Array[String], ?preprocessing: PreprocessingOptionsUpdate, ?encoding: String, ?debug: bool, ?strip_tags: Array[String], ?preserve_tags: Array[String], ?skip_images: bool, ?url_escape_style: UrlEscapeStyle, ?link_style: LinkStyle, ?output_format: OutputFormat, ?include_document_structure: bool, ?extract_images: bool, ?max_image_size: Integer, ?capture_svg: bool, ?infer_dimensions: bool, ?max_depth: Integer?, ?exclude_selectors: Array[String], ?tier_strategy: TierStrategy, ?visitor: VisitorHandle) -> void
175
+ end
176
+
177
+ class PreprocessingOptions
178
+ attr_reader enabled: bool
179
+ attr_reader preset: PreprocessingPreset
180
+ attr_reader remove_navigation: bool
181
+ attr_reader remove_forms: bool
183
182
 
184
183
  def initialize: (?enabled: bool, ?preset: PreprocessingPreset, ?remove_navigation: bool, ?remove_forms: bool) -> void
185
- def self.default: () -> PreprocessingOptions
186
- end
184
+ end
187
185
 
188
- class PreprocessingOptionsUpdate
189
- attr_accessor enabled: bool?
190
- attr_accessor preset: PreprocessingPreset?
191
- attr_accessor remove_navigation: bool?
192
- attr_accessor remove_forms: bool?
186
+ class PreprocessingOptionsUpdate
187
+ attr_reader enabled: bool?
188
+ attr_reader preset: PreprocessingPreset?
189
+ attr_reader remove_navigation: bool?
190
+ attr_reader remove_forms: bool?
193
191
 
194
192
  def initialize: (?enabled: bool, ?preset: PreprocessingPreset, ?remove_navigation: bool, ?remove_forms: bool) -> void
195
- end
193
+ end
196
194
 
197
- class ImageDimensions
198
- attr_reader width: Integer
199
- attr_reader height: Integer
195
+ class ImageDimensions
196
+ attr_reader width: Integer
197
+ attr_reader height: Integer
200
198
 
201
199
  def initialize: (width: Integer, height: Integer) -> void
202
- end
200
+ end
203
201
 
204
- class DocumentStructure
202
+ class DocumentStructure
205
203
  attr_reader nodes: Array[DocumentNode]
206
- attr_reader source_format: String
204
+ attr_reader source_format: String?
207
205
 
208
- def initialize: (nodes: Array[DocumentNode], ?source_format: String) -> void
209
- end
206
+ def initialize: (nodes: Array[DocumentNode], ?source_format: String) -> void
207
+ end
210
208
 
211
- class DocumentNode
212
- attr_reader id: String
213
- attr_reader content: NodeContent
214
- attr_reader parent: Integer
209
+ class DocumentNode
210
+ attr_reader id: String
211
+ attr_reader content: NodeContent
212
+ attr_reader parent: Integer?
215
213
  attr_reader children: Array[Integer]
216
214
  attr_reader annotations: Array[TextAnnotation]
217
- attr_reader attributes: Hash[String, String]
215
+ attr_reader attributes: Hash[String, String]?
218
216
 
219
- def initialize: (id: String, content: NodeContent, ?parent: Integer, children: Array[Integer], annotations: Array[TextAnnotation], ?attributes: Hash[String, String]) -> void
220
- end
217
+ def initialize: (id: String, content: NodeContent, ?parent: Integer, children: Array[Integer], annotations: Array[TextAnnotation], ?attributes: Hash[String, String]) -> void
218
+ end
221
219
 
222
- class TextAnnotation
223
- attr_reader start: Integer
224
- attr_reader end: Integer
225
- attr_reader kind: AnnotationKind
220
+ class TextAnnotation
221
+ attr_reader start: Integer
222
+ attr_reader end: Integer
223
+ attr_reader kind: AnnotationKind
226
224
 
227
225
  def initialize: (start: Integer, end: Integer, kind: AnnotationKind) -> void
228
- end
226
+ end
229
227
 
230
- class MetadataEntry
231
- attr_reader key: String
232
- attr_reader value: String
228
+ class MetadataEntry
229
+ attr_reader key: String
230
+ attr_reader value: String
233
231
 
234
232
  def initialize: (key: String, value: String) -> void
235
- end
236
-
237
- class ConversionResult
238
- attr_accessor content: String?
239
- attr_accessor document: DocumentStructure?
240
- attr_accessor metadata: HtmlMetadata?
241
- attr_accessor tables: Array[TableData]?
242
- attr_accessor warnings: Array[ProcessingWarning]?
243
-
244
- def initialize: (?content: String, ?document: DocumentStructure, ?metadata: HtmlMetadata, ?tables: Array[TableData], ?warnings: Array[ProcessingWarning]) -> void
245
- end
246
-
247
- class TableGrid
248
- attr_accessor rows: Integer?
249
- attr_accessor cols: Integer?
250
- attr_accessor cells: Array[GridCell]?
251
-
252
- def initialize: (?rows: Integer, ?cols: Integer, ?cells: Array[GridCell]) -> void
253
- end
254
-
255
- class GridCell
256
- attr_reader content: String
257
- attr_reader row: Integer
258
- attr_reader col: Integer
259
- attr_reader row_span: Integer
260
- attr_reader col_span: Integer
261
- attr_reader is_header: bool
233
+ end
234
+
235
+ class ConversionResult
236
+ attr_reader content: String?
237
+ attr_reader document: DocumentStructure?
238
+ attr_reader metadata: HtmlMetadata
239
+ attr_reader tables: Array[TableData]
240
+ attr_reader warnings: Array[ProcessingWarning]
241
+
242
+ def initialize: (?content: String, ?document: DocumentStructure, ?metadata: HtmlMetadata, ?tables: Array[TableData], ?warnings: Array[ProcessingWarning]) -> void
243
+ end
244
+
245
+ class TableGrid
246
+ attr_reader rows: Integer
247
+ attr_reader cols: Integer
248
+ attr_reader cells: Array[GridCell]
249
+
250
+ def initialize: (?rows: Integer, ?cols: Integer, ?cells: Array[GridCell]) -> void
251
+ end
252
+
253
+ class GridCell
254
+ attr_reader content: String
255
+ attr_reader row: Integer
256
+ attr_reader col: Integer
257
+ attr_reader row_span: Integer
258
+ attr_reader col_span: Integer
259
+ attr_reader is_header: bool
262
260
 
263
261
  def initialize: (content: String, row: Integer, col: Integer, row_span: Integer, col_span: Integer, is_header: bool) -> void
264
- end
262
+ end
265
263
 
266
- class TableData
267
- attr_reader grid: TableGrid
268
- attr_reader markdown: String
264
+ class TableData
265
+ attr_reader grid: TableGrid
266
+ attr_reader markdown: String
269
267
 
270
268
  def initialize: (grid: TableGrid, markdown: String) -> void
271
- end
269
+ end
272
270
 
273
- class ProcessingWarning
274
- attr_reader message: String
275
- attr_reader kind: WarningKind
271
+ class ProcessingWarning
272
+ attr_reader message: String
273
+ attr_reader kind: WarningKind
276
274
 
277
275
  def initialize: (message: String, kind: WarningKind) -> void
278
- end
276
+ end
279
277
 
280
- class VisitorHandle
281
- end
278
+ class VisitorHandle
279
+ end
282
280
 
283
- class NodeContext
284
- attr_reader node_type: NodeType
285
- attr_reader tag_name: String
286
- attr_reader depth: Integer
287
- attr_reader index_in_parent: Integer
288
- attr_reader parent_tag: String
289
- attr_reader is_inline: bool
281
+ class NodeContext
282
+ attr_reader node_type: NodeType
283
+ attr_reader tag_name: String
284
+ attr_reader depth: Integer
285
+ attr_reader index_in_parent: Integer
286
+ attr_reader parent_tag: String?
287
+ attr_reader is_inline: bool
290
288
 
291
289
  def initialize: (node_type: NodeType, tag_name: String, depth: Integer, index_in_parent: Integer, ?parent_tag: String, is_inline: bool) -> void
292
- def attributes: () -> Hash[String, String]
290
+ def attributes: () -> Hash[String, String]
293
291
  def into_owned: () -> NodeContext
294
- def self.with_owned_attributes: (NodeType node_type, String tag_name, Hash[String, String] attributes, Integer depth, Integer index_in_parent, ?String parent_tag, bool is_inline) -> NodeContext
295
- end
292
+ end
296
293
 
297
- class TextDirection
298
- type value = :left_to_right | :right_to_left | :auto
299
- end
294
+ class TextDirection
295
+ type value = :left_to_right | :right_to_left | :auto
296
+ end
300
297
 
301
- class LinkType
302
- type value = :anchor | :internal | :external | :email | :phone | :other
303
- end
298
+ class LinkType
299
+ type value = :anchor | :internal | :external | :email | :phone | :other
300
+ end
304
301
 
305
- class ImageType
306
- type value = :data_uri | :inline_svg | :external | :relative
307
- end
302
+ class ImageType
303
+ type value = :data_uri | :inline_svg | :external | :relative
304
+ end
308
305
 
309
- class StructuredDataType
310
- type value = :json_ld | :microdata | :rd_fa
311
- end
306
+ class StructuredDataType
307
+ type value = :json_ld | :microdata | :rd_fa
308
+ end
312
309
 
313
- class TierStrategy
314
- type value = :auto | :tier2 | :tier1
315
- end
310
+ class TierStrategy
311
+ type value = :auto | :tier2 | :tier1
312
+ end
316
313
 
317
- class PreprocessingPreset
318
- type value = :minimal | :standard | :aggressive
319
- end
314
+ class PreprocessingPreset
315
+ type value = :minimal | :standard | :aggressive
316
+ end
320
317
 
321
- class HeadingStyle
322
- type value = :underlined | :atx | :atx_closed
323
- end
318
+ class HeadingStyle
319
+ type value = :underlined | :atx | :atx_closed
320
+ end
324
321
 
325
- class ListIndentType
326
- type value = :spaces | :tabs
327
- end
322
+ class ListIndentType
323
+ type value = :spaces | :tabs
324
+ end
328
325
 
329
- class WhitespaceMode
330
- type value = :normalized | :strict
331
- end
326
+ class WhitespaceMode
327
+ type value = :normalized | :strict
328
+ end
332
329
 
333
- class NewlineStyle
334
- type value = :spaces | :backslash
335
- end
330
+ class NewlineStyle
331
+ type value = :spaces | :backslash
332
+ end
336
333
 
337
- class CodeBlockStyle
338
- type value = :indented | :backticks | :tildes
339
- end
334
+ class CodeBlockStyle
335
+ type value = :indented | :backticks | :tildes
336
+ end
340
337
 
341
- class HighlightStyle
342
- type value = :double_equal | :html | :bold | :none
343
- end
338
+ class HighlightStyle
339
+ type value = :double_equal | :html | :bold | :none
340
+ end
344
341
 
345
- class LinkStyle
346
- type value = :inline | :reference
347
- end
342
+ class LinkStyle
343
+ type value = :inline | :reference
344
+ end
348
345
 
349
- class UrlEscapeStyle
350
- type value = :angle | :percent
351
- end
346
+ class UrlEscapeStyle
347
+ type value = :angle | :percent
348
+ end
352
349
 
353
- class OutputFormat
354
- type value = :markdown | :djot | :plain
355
- end
350
+ class OutputFormat
351
+ type value = :markdown | :djot | :plain
352
+ end
356
353
 
357
- class NodeContent
358
- end
354
+ class NodeContent
355
+ end
359
356
 
360
- class AnnotationKind
361
- end
357
+ class AnnotationKind
358
+ end
362
359
 
363
- class WarningKind
364
- type value = :image_extraction_failed | :encoding_fallback | :truncated_input | :malformed_html | :sanitization_applied | :depth_limit_exceeded
365
- end
360
+ class WarningKind
361
+ type value = :image_extraction_failed | :encoding_fallback | :truncated_input | :malformed_html | :sanitization_applied | :depth_limit_exceeded
362
+ end
366
363
 
367
- class NodeType
368
- type value = :text | :element | :heading | :paragraph | :div | :blockquote | :pre | :hr | :list | :list_item | :definition_list | :definition_term | :definition_description | :table | :table_row | :table_cell | :table_header | :table_body | :table_head | :table_foot | :link | :image | :strong | :em | :code | :strikethrough | :underline | :subscript | :superscript | :mark | :small | :br | :span | :article | :section | :nav | :aside | :header | :footer | :main | :figure | :figcaption | :time | :details | :summary | :form | :input | :select | :option | :button | :textarea | :label | :fieldset | :legend | :audio | :video | :picture | :source | :iframe | :svg | :canvas | :ruby | :rt | :rp | :abbr | :kbd | :samp | :var | :cite | :q | :del | :ins | :data | :meter | :progress | :output | :template | :slot | :html | :head | :body | :title | :meta | :link_tag | :style | :script | :base | :custom
369
- end
364
+ class NodeType
365
+ type value = :text | :element | :heading | :paragraph | :div | :blockquote | :pre | :hr | :list | :list_item | :definition_list | :definition_term | :definition_description | :table | :table_row | :table_cell | :table_header | :table_body | :table_head | :table_foot | :link | :image | :strong | :em | :code | :strikethrough | :underline | :subscript | :superscript | :mark | :small | :br | :span | :article | :section | :nav | :aside | :header | :footer | :main | :figure | :figcaption | :time | :details | :summary | :form | :input | :select | :option | :button | :textarea | :label | :fieldset | :legend | :audio | :video | :picture | :source | :iframe | :svg | :canvas | :ruby | :rt | :rp | :abbr | :kbd | :samp | :var | :cite | :q | :del | :ins | :data | :meter | :progress | :output | :template | :slot | :html | :head | :body | :title | :meta | :link_tag | :style | :script | :base | :custom
366
+ end
370
367
 
371
- class VisitResult
372
- end
368
+ class VisitResult
369
+ end
373
370
 
374
- def self.convert: (String html, ?ConversionOptions options) -> ConversionResult
371
+ def self.convert: (String html, ?ConversionOptions options) -> ConversionResult
375
372
 
376
373
  end