class_docstr: Converts a Markdown file into a text Document.
  
  Usage example:
  ```python
  from haystack.components.converters.markdown import MarkdownToDocument
  
  converter = MarkdownToDocument()
  results = converter.run(sources=["sample.md"], meta={"date_added": datetime.now().isoformat()})
  documents = results["documents"]
  print(documents[0].content)
  # 'This is a text from the markdown file.'
  ```
docstr: :param table_to_single_line: Convert contents of the table into a single line. Defaults to False.
  :param progress_bar: Show a progress bar for the conversion. Defaults to True.
docstr_tok: [":","param","table_to_single_line",":","Convert","contents","of","the","table","into","a","single","line",".","Defaults","to","False",".",":","param","progress_bar",":","Show","a","progress","bar","for","the","conversion",".","Defaults","to","True","."]
code: def __init__(
      self,
      table_to_single_line: bool = False,
      progress_bar: bool = True,
  ):
      """
      :param table_to_single_line: Convert contents of the table into a single line. Defaults to False.
      :param progress_bar: Show a progress bar for the conversion. Defaults to True.
      """
      markdown_conversion_imports.check()
  
      self.table_to_single_line = table_to_single_line
      self.progress_bar = progress_bar
  
file_path: haystack/haystack/components/converters/markdown.py
imports: import logging
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  from tqdm import tqdm
  from haystack import Document, component
  from haystack.dataclasses import ByteStream
  from haystack.lazy_imports import LazyImport
  from haystack.components.converters.utils import get_bytestream_from_source, normalize_metadata
label_desc: Use image node_id 1 to create a new MarkdownToDocument object  with example: obj = MarkdownToDocument(table_to_single_line, progress_bar)