Class MkMarkdown

java.lang.Object
com.jcabi.github.mock.MkMarkdown
All Implemented Interfaces:
Markdown

@Immutable @Loggable(1) public final class MkMarkdown extends Object implements Markdown
Mock markdown API.
Since:
0.10
  • Constructor Details

    • MkMarkdown

      public MkMarkdown(GitHub github)
      Creates new instance.
      Parameters:
      github - Owner github
  • Method Details

    • github

      public GitHub github()
      Description copied from interface: Markdown
      Get its owner.
      Specified by:
      github in interface Markdown
      Returns:
      GitHub
    • render

      public String render(jakarta.json.JsonObject json)
      Description copied from interface: Markdown
      Render.
      Specified by:
      render in interface Markdown
      Parameters:
      json - JSON parameters
      Returns:
      HTML
    • raw

      public String raw(String text)
      Description copied from interface: Markdown
      Raw rendering.
      Specified by:
      raw in interface Markdown
      Parameters:
      text - Text in Markdown format
      Returns:
      HTML