code: def _adjust_image_paths(self, content: str, md_file_path: Path) -> str:
          '''Locate images referenced in a Markdown string and replace their paths
          with the absolute ones.
  
          :param content: Markdown content
          :param md_file_path: Path to the Markdown file containing the content
  
          :returns: Markdown content with absolute image paths
          '''
  
          def _sub(image):
              image_caption = image.group('caption')
              image_path = md_file_path.parent / Path(image.group('path'))
  
              self.logger.debug(
                  f'Updating image reference; user specified path: {image.group("path")}, ' +
                  f'absolute path: {image_path}, caption: {image_caption}'
              )
  
              return f'![{image_caption}]({image_path.absolute().as_posix()})'
  
          return self._image_pattern.sub(_sub, contentf _adjust_image_paths(self, content: str, md_file_path: Path) -> str:
          '''Locate images referenced in a Markdown string and replace their paths
          with the absolute ones.
  
          :param content: Markdown content
          :param md_file_path: Path to the Markdown file containing the content
  
          :returns: Markdown content with absolute image paths
          '''
  
          def _sub(image):
              image_caption = image.group('caption')
              image_path = md_file_path.parent / Path(image.group('path'))
  
              self.logger.debug(
                  f'Updating image reference; user specified path: {image.group("path")}, ' +
                  f'absolute path: {image_path}, caption: {image_caption}'
              )
  
              return f'![{image_caption}]({image_path.absolute().as_posix()})'
  
          return self._image_pattern.sub(_sub, content)
docs: Locate images referenced in a Markdown string and replace their paths
          with the absolute ones.
  
          :param content: Markdown content
          :param md_file_path: Path to the Markdown file containing the content
  
          :returns: Markdown content with absolute image paths