An HTML formatter. To define the callables that compute the HTML representation of your objects, define a :meth:`_repr_html_` method or use the :meth:`for_type` or :meth:`for_type_by_name` methods to register functions that handle this. The return value of this formatter should
| 705 | |
| 706 | |
| 707 | class HTMLFormatter(BaseFormatter): |
| 708 | """An HTML formatter. |
| 709 | |
| 710 | To define the callables that compute the HTML representation of your |
| 711 | objects, define a :meth:`_repr_html_` method or use the :meth:`for_type` |
| 712 | or :meth:`for_type_by_name` methods to register functions that handle |
| 713 | this. |
| 714 | |
| 715 | The return value of this formatter should be a valid HTML snippet that |
| 716 | could be injected into an existing DOM. It should *not* include the |
| 717 | ```<html>`` or ```<body>`` tags. |
| 718 | """ |
| 719 | format_type = Unicode('text/html') |
| 720 | |
| 721 | print_method = ObjectName('_repr_html_') |
| 722 | |
| 723 | |
| 724 | class MarkdownFormatter(BaseFormatter): |
no outgoing calls