Class Markdown

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.markdown.Markdown
All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasSize, HasStyle, Serializable

@Tag("vaadin-markdown") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.8.3") @NpmPackage(value="@vaadin/markdown",version="24.8.3") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/markdown/src/vaadin-markdown.js") public class Markdown extends Component implements HasSize
Markdown is a component for rendering Markdown content. It takes Markdown source as input and renders the corresponding HTML.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • Markdown

      public Markdown()
      Default constructor. Creates an empty Markdown.
    • Markdown

      public Markdown(String content)
      Creates a Markdown with content.
      Parameters:
      content - the markdown content
      See Also:
  • Method Details

    • setContent

      public void setContent(String content)
      Sets the markdown content.
      Parameters:
      content - the markdown content
    • appendContent

      public void appendContent(String content)
      Appends the markdown content.
      Parameters:
      content - the markdown content to append
    • getContent

      public String getContent()
      Gets the markdown content.
      Returns:
      the markdown content