Class | String |
In: |
lib/erbook/html.rb
|
Parent: | Object |
PROTECTED_TAGS | = | %w[tt code pre] | The content of these HTML tags will be preserved while they are being processed by Textile. By doing this, we avoid unwanted Textile transformations, such as quotation marks becoming curly (&8192;), in source code. | |
VERBATIM_TAGS | = | %w[noformat] | The content of these HTML tags will be preserved verbatim throughout the text-to-HTML conversion process. |
to_html | -> | to_html_maruku |
XXX: Maruku also defines String#to_html so we have to hack around it :-( |
Adds syntax coloring to <code> elements in the given text. If the <code> tag has an attribute lang="…", then that is considered the programming language for which appropriate syntax coloring should be applied. Otherwise, the programming language is assumed to be ruby.
Returns the result of running this string through Maruku.
If aInline is true, then the resulting HTML will not be wrapped in a HTML paragraph element.
Transforms this string into HTML while ensuring that the result contains one or more block-level elements at the root.
If aInline is true, then the resulting HTML will be an inline string.