Class Image


public class Image extends Link
Displays an image within the document. Allows specifying the alt text.
Since:
0.0.12
Author:
Thomas Kwashnak
  • Constructor Details

    • Image

      public Image(String src)
      Implements an image with no alt text.
      Parameters:
      src - Image source url
      Since:
      0.0.12
    • Image

      public Image(String alt, String src)
      Parameters:
      alt - Alternate text used for the image
      src - Image source url
      Since:
      0.0.12
  • Method Details

    • asString

      public String asString()
      Formats the string into the link syntax used in Markdown
      Overrides:
      asString in class Link
      Returns:
      String representation of the formatted item
      Since:
      0.0.12