| apply_block_transforms |
Do block-level transforms on a copy of str using the specified
render state rs and return the results.
|
| apply_span_transforms |
Apply Markdown span transforms to a copy of the specified str with
the given render state rs and return it.
|
| detab |
Convert tabs in str to spaces.
|
| detab! |
Convert tabs to spaces in place and return self if any were converted.
|
| encode_backslash_escapes |
Return a copy of the given str with any backslashed special
character in it replaced with MD5 placeholders.
|
| encode_code |
Escape any characters special to HTML and encode any characters special to
Markdown in a copy of the given str and return it.
|
| encode_email_address |
Transform a copy of the given email addr into an escaped version
safer for posting publicly.
|
| encode_html |
Return a copy of str with angle brackets and ampersands
HTML-encoded.
|
| escape_md |
Escape any markdown characters in a copy of the given str and
return it.
|
| escape_special_chars |
Escape special characters in the given str
|
| form_paragraphs |
Wrap all remaining paragraph-looking text in a copy of str inside
<p> tags and return it.</p>
|
| hide_html_blocks |
Replace all blocks of HTML in str that start in the left margin
with tokens.
|
| new |
Create a new BlueCloth string.
|
| outdent |
Return one level of line-leading tabs or spaces from a copy of str
and return it.
|
| strip_link_definitions |
Strip link definitions from str, storing them in the given
RenderState rs.
|
| to_html |
Render Markdown-formatted text in this string object as HTML and return it.
The parameter is for compatibility with RedCloth, and is currently unused,
though that may change in the future.
|
| tokenize_html |
Break the HTML source in str into a series of tokens and return
them. The tokens are just 2-element Array tuples with a type and the actual
content. If this function is called with a block, the type and text parts
of each token will be yielded to it one at a time as they are extracted.
|
| transform_anchors |
Apply Markdown anchor transforms to a copy of the specified str
with the given render state rs and return it.
|
| transform_auto_links |
Transform URLs in a copy of the specified str into links and
return it.
|
| transform_block_quotes |
Transform Markdown-style blockquotes in a copy of the specified
str and return it.
|
| transform_code_blocks |
Transform Markdown-style codeblocks in a copy of the specified str
and return it.
|
| transform_code_spans |
Transform backticked spans into spans.
|
| transform_headers |
Apply Markdown header transforms to a copy of the given str amd
render state rs and return the result.
|
| transform_hrules |
Transform any Markdown-style horizontal rules in a copy of the specified
str and return it.
|
| transform_images |
Turn image markup into image tags.
|
| transform_italic_and_bold |
Transform italic- and bold-encoded text in a copy of the specified
str and return it.
|
| transform_list_items |
Transform list items in a copy of the given str and return it.
|
| transform_lists |
Transform Markdown-style lists in a copy of the specified str and
return it.
|
| unescape_special_chars |
Swap escaped special characters in a copy of the given str and
return it.
|
<code/>and<pre/>for code samples.