com.overzealous.remark.convert
Class Codeblock

java.lang.Object
  extended by com.overzealous.remark.convert.AbstractNodeHandler
      extended by com.overzealous.remark.convert.Codeblock
All Implemented Interfaces:
NodeHandler

public class Codeblock
extends AbstractNodeHandler

Handles preformatted sections (pre), renders them as code blocks.

Author:
Phil DeJarnett

Constructor Summary
Codeblock()
           
 
Method Summary
 void handleNode(NodeHandler parent, Element node, DocumentConverter converter)
          Converts a pre-formatted block of code.
 
Methods inherited from class com.overzealous.remark.convert.AbstractNodeHandler
handleIgnoredHTMLElement, handleTextNode, prependAndRecurse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Codeblock

public Codeblock()
Method Detail

handleNode

public void handleNode(NodeHandler parent,
                       Element node,
                       DocumentConverter converter)
Converts a pre-formatted block of code. Depending on the options, this may render as a block with four spaces added to the beginning, or as a fenced code block.

Parameters:
parent - The previous node walker, in case we just want to remove an element.
node - Node to handle
converter - Parent converter for this object.


© 2011 OverZealous Creations, LLC - BitBucket Repository