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
| 773 | |
| 774 | |
| 775 | class HTMLFormatter(BaseFormatter): |
| 776 | """An HTML formatter. |
| 777 | |
| 778 | To define the callables that compute the HTML representation of your |
| 779 | objects, define a :meth:`_repr_html_` method or use the :meth:`for_type` |
| 780 | or :meth:`for_type_by_name` methods to register functions that handle |
| 781 | this. |
| 782 | |
| 783 | The return value of this formatter should be a valid HTML snippet that |
| 784 | could be injected into an existing DOM. It should *not* include the |
| 785 | ```<html>`` or ```<body>`` tags. |
| 786 | """ |
| 787 | format_type = Unicode('text/html') |
| 788 | |
| 789 | print_method = ObjectName('_repr_html_') |
| 790 | |
| 791 | |
| 792 | class MarkdownFormatter(BaseFormatter): |
no outgoing calls
searching dependent graphs…