Class MarkdownSyntaxDecorator

java.lang.Object
org.apache.wiki.htmltowiki.syntax.WikiSyntaxDecorator
org.apache.wiki.htmltowiki.syntax.markdown.MarkdownSyntaxDecorator
All Implemented Interfaces:
SyntaxDecorator

Markdown wiki syntax decorator which translates to wiki syntax. Delegates each kind of XHTML element to its specific decorator.
  • Constructor Details

  • Method Details

    • init

      public void init(PrintWriter out, Deque<String> liStack, Deque<String> preStack, WhitespaceTrimWriter outTrimmer, XHtmlToWikiConfig config, XHtmlElementToWikiTranslator chain)
      Prepares the syntax decorator.
      Parameters:
      out - writer that will hold the resulting wiki markup.
      liStack - stack containing the amount of nested lis.
      preStack - stack containing the amount of nested pres.
      outTrimmer - writer capable of trimming whitespaces and of checking if it's currently writing a line start.
      config - xhtml to wiki configuration object.
      chain - chain (in the chain of responsibilities patterns) that is expected to be called by the different xhtml decorations.