Class: Xberg::ConversionOptions

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConversionOptions

Returns a new instance of ConversionOptions.

Parameters:

  • heading_style: (enum_HeadingStyle)
  • list_indent_type: (enum_ListIndentType)
  • list_indent_width: (Integer)
  • bullets: (String)
  • strong_em_symbol: (String)
  • escape_asterisks: (Boolean)
  • escape_underscores: (Boolean)
  • escape_misc: (Boolean)
  • escape_ascii: (Boolean)
  • code_language: (String)
  • autolinks: (Boolean)
  • default_title: (Boolean)
  • br_in_tables: (Boolean)
  • compact_tables: (Boolean)
  • highlight_style: (enum_HighlightStyle)
  • extract_metadata: (Boolean)
  • whitespace_mode: (enum_WhitespaceMode)
  • strip_newlines: (Boolean)
  • wrap: (Boolean)
  • wrap_width: (Integer)
  • convert_as_inline: (Boolean)
  • sub_symbol: (String)
  • sup_symbol: (String)
  • newline_style: (enum_NewlineStyle)
  • code_block_style: (enum_CodeBlockStyle)
  • keep_inline_images_in: (Array[String])
  • preprocessing: (PreprocessingOptions)
  • encoding: (String)
  • debug: (Boolean)
  • strip_tags: (Array[String])
  • preserve_tags: (Array[String])
  • skip_images: (Boolean)
  • url_escape_style: (enum_UrlEscapeStyle)
  • link_style: (enum_LinkStyle)
  • output_format: (enum_HtmlToMarkdownRsOutputFormat)
  • include_document_structure: (Boolean)
  • extract_images: (Boolean)
  • max_image_size: (Integer)
  • capture_svg: (Boolean)
  • infer_dimensions: (Boolean)
  • max_depth: (Integer)
  • exclude_selectors: (Array[String])
  • tier_strategy: (enum_TierStrategy)


365
# File 'sig/types.rbs', line 365

def initialize: (?heading_style: enum_HeadingStyle, ?list_indent_type: enum_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: enum_HighlightStyle, ?extract_metadata: bool, ?whitespace_mode: enum_WhitespaceMode, ?strip_newlines: bool, ?wrap: bool, ?wrap_width: Integer, ?convert_as_inline: bool, ?sub_symbol: String, ?sup_symbol: String, ?newline_style: enum_NewlineStyle, ?code_block_style: enum_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: enum_UrlEscapeStyle, ?link_style: enum_LinkStyle, ?output_format: enum_HtmlToMarkdownRsOutputFormat, ?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: enum_TierStrategy) -> void

Instance Attribute Details

Returns the value of attribute autolinks.

Returns:

  • (Boolean)


331
332
333
# File 'sig/types.rbs', line 331

def autolinks
  @autolinks
end

#br_in_tablesBoolean (readonly)

Returns the value of attribute br_in_tables.

Returns:

  • (Boolean)


333
334
335
# File 'sig/types.rbs', line 333

def br_in_tables
  @br_in_tables
end

#bulletsString (readonly)

Returns the value of attribute bullets.

Returns:

  • (String)


324
325
326
# File 'sig/types.rbs', line 324

def bullets
  @bullets
end

#capture_svgBoolean (readonly)

Returns the value of attribute capture_svg.

Returns:

  • (Boolean)


359
360
361
# File 'sig/types.rbs', line 359

def capture_svg
  @capture_svg
end

#code_block_styleenum_CodeBlockStyle (readonly)

Returns the value of attribute code_block_style.

Returns:

  • (enum_CodeBlockStyle)


345
346
347
# File 'sig/types.rbs', line 345

def code_block_style
  @code_block_style
end

#code_languageString (readonly)

Returns the value of attribute code_language.

Returns:

  • (String)


330
331
332
# File 'sig/types.rbs', line 330

def code_language
  @code_language
end

#compact_tablesBoolean (readonly)

Returns the value of attribute compact_tables.

Returns:

  • (Boolean)


334
335
336
# File 'sig/types.rbs', line 334

def compact_tables
  @compact_tables
end

#convert_as_inlineBoolean (readonly)

Returns the value of attribute convert_as_inline.

Returns:

  • (Boolean)


341
342
343
# File 'sig/types.rbs', line 341

def convert_as_inline
  @convert_as_inline
end

#debugBoolean (readonly)

Returns the value of attribute debug.

Returns:

  • (Boolean)


349
350
351
# File 'sig/types.rbs', line 349

def debug
  @debug
end

#default_titleBoolean (readonly)

Returns the value of attribute default_title.

Returns:

  • (Boolean)


332
333
334
# File 'sig/types.rbs', line 332

def default_title
  @default_title
end

#encodingString (readonly)

Returns the value of attribute encoding.

Returns:

  • (String)


348
349
350
# File 'sig/types.rbs', line 348

def encoding
  @encoding
end

#escape_asciiBoolean (readonly)

Returns the value of attribute escape_ascii.

Returns:

  • (Boolean)


329
330
331
# File 'sig/types.rbs', line 329

def escape_ascii
  @escape_ascii
end

#escape_asterisksBoolean (readonly)

Returns the value of attribute escape_asterisks.

Returns:

  • (Boolean)


326
327
328
# File 'sig/types.rbs', line 326

def escape_asterisks
  @escape_asterisks
end

#escape_miscBoolean (readonly)

Returns the value of attribute escape_misc.

Returns:

  • (Boolean)


328
329
330
# File 'sig/types.rbs', line 328

def escape_misc
  @escape_misc
end

#escape_underscoresBoolean (readonly)

Returns the value of attribute escape_underscores.

Returns:

  • (Boolean)


327
328
329
# File 'sig/types.rbs', line 327

def escape_underscores
  @escape_underscores
end

#exclude_selectorsArray[String] (readonly)

Returns the value of attribute exclude_selectors.

Returns:

  • (Array[String])


362
363
364
# File 'sig/types.rbs', line 362

def exclude_selectors
  @exclude_selectors
end

#extract_imagesBoolean (readonly)

Returns the value of attribute extract_images.

Returns:

  • (Boolean)


357
358
359
# File 'sig/types.rbs', line 357

def extract_images
  @extract_images
end

#extract_metadataBoolean (readonly)

Returns the value of attribute extract_metadata.

Returns:

  • (Boolean)


336
337
338
# File 'sig/types.rbs', line 336

def 
  
end

#heading_styleenum_HeadingStyle (readonly)

Returns the value of attribute heading_style.

Returns:

  • (enum_HeadingStyle)


321
322
323
# File 'sig/types.rbs', line 321

def heading_style
  @heading_style
end

#highlight_styleenum_HighlightStyle (readonly)

Returns the value of attribute highlight_style.

Returns:

  • (enum_HighlightStyle)


335
336
337
# File 'sig/types.rbs', line 335

def highlight_style
  @highlight_style
end

#include_document_structureBoolean (readonly)

Returns the value of attribute include_document_structure.

Returns:

  • (Boolean)


356
357
358
# File 'sig/types.rbs', line 356

def include_document_structure
  @include_document_structure
end

#infer_dimensionsBoolean (readonly)

Returns the value of attribute infer_dimensions.

Returns:

  • (Boolean)


360
361
362
# File 'sig/types.rbs', line 360

def infer_dimensions
  @infer_dimensions
end

#keep_inline_images_inArray[String] (readonly)

Returns the value of attribute keep_inline_images_in.

Returns:

  • (Array[String])


346
347
348
# File 'sig/types.rbs', line 346

def keep_inline_images_in
  @keep_inline_images_in
end

Returns the value of attribute link_style.

Returns:

  • (enum_LinkStyle)


354
355
356
# File 'sig/types.rbs', line 354

def link_style
  @link_style
end

#list_indent_typeenum_ListIndentType (readonly)

Returns the value of attribute list_indent_type.

Returns:

  • (enum_ListIndentType)


322
323
324
# File 'sig/types.rbs', line 322

def list_indent_type
  @list_indent_type
end

#list_indent_widthInteger (readonly)

Returns the value of attribute list_indent_width.

Returns:

  • (Integer)


323
324
325
# File 'sig/types.rbs', line 323

def list_indent_width
  @list_indent_width
end

#max_depthInteger? (readonly)

Returns the value of attribute max_depth.

Returns:

  • (Integer, nil)


361
362
363
# File 'sig/types.rbs', line 361

def max_depth
  @max_depth
end

#max_image_sizeInteger (readonly)

Returns the value of attribute max_image_size.

Returns:

  • (Integer)


358
359
360
# File 'sig/types.rbs', line 358

def max_image_size
  @max_image_size
end

#newline_styleenum_NewlineStyle (readonly)

Returns the value of attribute newline_style.

Returns:

  • (enum_NewlineStyle)


344
345
346
# File 'sig/types.rbs', line 344

def newline_style
  @newline_style
end

#output_formatenum_HtmlToMarkdownRsOutputFormat (readonly)

Returns the value of attribute output_format.

Returns:

  • (enum_HtmlToMarkdownRsOutputFormat)


355
356
357
# File 'sig/types.rbs', line 355

def output_format
  @output_format
end

#preprocessingPreprocessingOptions (readonly)

Returns the value of attribute preprocessing.



347
348
349
# File 'sig/types.rbs', line 347

def preprocessing
  @preprocessing
end

#preserve_tagsArray[String] (readonly)

Returns the value of attribute preserve_tags.

Returns:

  • (Array[String])


351
352
353
# File 'sig/types.rbs', line 351

def preserve_tags
  @preserve_tags
end

#skip_imagesBoolean (readonly)

Returns the value of attribute skip_images.

Returns:

  • (Boolean)


352
353
354
# File 'sig/types.rbs', line 352

def skip_images
  @skip_images
end

#strip_newlinesBoolean (readonly)

Returns the value of attribute strip_newlines.

Returns:

  • (Boolean)


338
339
340
# File 'sig/types.rbs', line 338

def strip_newlines
  @strip_newlines
end

#strip_tagsArray[String] (readonly)

Returns the value of attribute strip_tags.

Returns:

  • (Array[String])


350
351
352
# File 'sig/types.rbs', line 350

def strip_tags
  @strip_tags
end

#strong_em_symbolString (readonly)

Returns the value of attribute strong_em_symbol.

Returns:

  • (String)


325
326
327
# File 'sig/types.rbs', line 325

def strong_em_symbol
  @strong_em_symbol
end

#sub_symbolString (readonly)

Returns the value of attribute sub_symbol.

Returns:

  • (String)


342
343
344
# File 'sig/types.rbs', line 342

def sub_symbol
  @sub_symbol
end

#sup_symbolString (readonly)

Returns the value of attribute sup_symbol.

Returns:

  • (String)


343
344
345
# File 'sig/types.rbs', line 343

def sup_symbol
  @sup_symbol
end

#tier_strategyenum_TierStrategy (readonly)

Returns the value of attribute tier_strategy.

Returns:

  • (enum_TierStrategy)


363
364
365
# File 'sig/types.rbs', line 363

def tier_strategy
  @tier_strategy
end

#url_escape_styleenum_UrlEscapeStyle (readonly)

Returns the value of attribute url_escape_style.

Returns:

  • (enum_UrlEscapeStyle)


353
354
355
# File 'sig/types.rbs', line 353

def url_escape_style
  @url_escape_style
end

#whitespace_modeenum_WhitespaceMode (readonly)

Returns the value of attribute whitespace_mode.

Returns:

  • (enum_WhitespaceMode)


337
338
339
# File 'sig/types.rbs', line 337

def whitespace_mode
  @whitespace_mode
end

#wrapBoolean (readonly)

Returns the value of attribute wrap.

Returns:

  • (Boolean)


339
340
341
# File 'sig/types.rbs', line 339

def wrap
  @wrap
end

#wrap_widthInteger (readonly)

Returns the value of attribute wrap_width.

Returns:

  • (Integer)


340
341
342
# File 'sig/types.rbs', line 340

def wrap_width
  @wrap_width
end