Class ImageSpan

java.lang.Object
com.teamten.markdown.Span
com.teamten.markdown.ImageSpan

public class ImageSpan extends Span
Stores an image and its caption.
  • Constructor Details

    • ImageSpan

      public ImageSpan(@NotNull @NotNull String pathname, @Nullable @Nullable Block caption)
  • Method Details

    • getPathname

      @NotNull public @NotNull String getPathname()
    • getCaption

      @Nullable public @Nullable Block getCaption()
      The caption as a block, or an empty string if none was specified.
    • postProcessText

      public void postProcessText(String locale)
      Description copied from class: Span
      Convert apostrophes, quotes, etc.
      Overrides:
      postProcessText in class Span
      Parameters:
      locale - the locale being processed ("en_US", "fr", etc.).
    • toString

      public String toString()
      Overrides:
      toString in class Object