Makeup v0.8.0 Makeup.Formatters.HTML.HTMLFormatter View Source

A turn the list of tokens into a

Link to this section Summary

Functions

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document

format a single token into an iolist

Return a Javascript snippet to highlight code on mouseover. This is “raw” javascript, and for inclusion in an HTML file it must be wrapped in a <script> tag

Return the CSS stylesheet for a given style

Link to this section Functions

Link to this function format_as_binary(tokens, opts \\ []) View Source

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document.

Link to this function format_as_iolist(tokens, opts \\ []) View Source

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document.

Link to this function format_inner_as_binary(tokens) View Source

Turns a list of tokens into an HTML fragment. This fragment can be embedded directly into an HTML document.

Link to this function format_inner_as_iolist(tokens) View Source

Turns a list of tokens into an iolist which represents an HTML fragment. This fragment can be embedded directly into an HTML document.

format a single token into an iolist

Link to this function group_highlighter_javascript() View Source

Return a Javascript snippet to highlight code on mouseover. This is “raw” javascript, and for inclusion in an HTML file it must be wrapped in a <script> tag.

Link to this function stylesheet(style, css_class \\ "highlight") View Source

Return the CSS stylesheet for a given style.