Package | Description |
---|---|
com.overzealous.remark.convert |
This package contains the classes that walk the Jsoup document and processConvert it into Markdown code.
|
Modifier and Type | Class and Description |
---|---|
class |
Abbr
Handles abbr and acronym tags
|
class |
AbstractNodeHandler
Contains basic implementations for handling text nodes and ignored HTML elements.
|
class |
Anchor
Handles anchor (a) tags, both links and named anchors.
|
class |
BlockQuote
Handles blockquote tags
|
class |
Break
Handles manual breaks (br)
|
class |
Codeblock
Handles preformatted sections (pre), renders them as code blocks.
|
class |
DefaultNodeHandler
Default handler for unknown top-level nodes.
|
class |
Definitions
Handles dl, dt, and dd elements
|
class |
Header
Handles header nodes (h1 through h6)
|
class |
HorizontalRule
Handles a simple hr tag
|
class |
Image
Handles img tags.
|
class |
InlineCode
Handles inline fixed-width code (code, tt) tags.
|
class |
InlineStyle
Handles various inline styling (italics and bold), such as em, i, strong, b, span, and font tags.
|
class |
List
Handles ol and ul lists.
|
class |
NodeRemover |
class |
Paragraph
Handles paragraph (p) tags.
|
class |
Table |
Modifier and Type | Method and Description |
---|---|
Map<String,NodeHandler> |
DocumentConverter.getBlockNodes() |
Map<String,NodeHandler> |
DocumentConverter.getInlineNodes() |
Modifier and Type | Method and Description |
---|---|
void |
DocumentConverter.addBlockNode(NodeHandler handler,
String tagnames)
Customize the processing for a node.
|
void |
DocumentConverter.addInlineNode(NodeHandler handler,
String tagnames)
Customize the processing for a node.
|
String |
DocumentConverter.getInlineContent(NodeHandler currentNode,
Element el)
Recursively processes child nodes and returns the potential output string.
|
String |
DocumentConverter.getInlineContent(NodeHandler currentNode,
Element el,
boolean undoLeadingEscapes)
Recursively processes child nodes and returns the potential output string.
|
void |
Table.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter) |
void |
Paragraph.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Creates a standard text block, then walks down over inline nodes.
|
void |
NodeRemover.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter) |
void |
NodeHandler.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Handles an HTML Element node.
|
void |
List.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter) |
void |
InlineStyle.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Renders inline styling (bold, italics) for the given tag.
|
void |
InlineCode.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Renders inline-styled code.
|
void |
Image.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Creates a link reference to an image, and renders the correct output.
|
void |
HorizontalRule.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter) |
void |
Header.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Renders a header node (h1..h6).
|
void |
Definitions.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter) |
void |
DefaultNodeHandler.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
For the default state element, the nodes are simply ignored, recursing as necessary.
|
void |
Codeblock.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Converts a pre-formatted block of code.
|
void |
Break.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Renders out forced linebreaks.
|
void |
BlockQuote.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Processes a quoted section.
|
void |
Anchor.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Creates a link reference, and renders the correct output.
|
void |
Abbr.handleNode(NodeHandler parent,
Element node,
DocumentConverter converter)
Handles abbreviations.
|
void |
DocumentConverter.walkNodes(NodeHandler currentNode,
Element el)
Loops over the children of an HTML Element, handling TextNode and child Elements.
|
void |
DocumentConverter.walkNodes(NodeHandler currentNodeHandler,
Element el,
Map<String,NodeHandler> nodeList)
Loops over the children of an HTML Element, handling TextNode and child Elements.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractNodeHandler.prependAndRecurse(String prepend,
Element node,
DocumentConverter converter,
Map<String,NodeHandler> nodes)
Recursively processes child nodes, and prepends the given string to the output.
|
void |
DocumentConverter.walkNodes(NodeHandler currentNodeHandler,
Element el,
Map<String,NodeHandler> nodeList)
Loops over the children of an HTML Element, handling TextNode and child Elements.
|
Copyright © 2017. All rights reserved.