Coverage for markupmirror.markup.base : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Basic interface for markup converter classes.
"""
def get_name(cls): """Returns lowercase markup name, without the "Markup" part."""
"""Called before ``convert``."""
"""``Called after ``convert``."""
"""Main conversion method. Use third-pary libraries here."""
"""Main entry point. Calls ``before_convert``, ``convert`` and ``after_convert`` in that order.
""" self.after_convert(self.convert(self.before_convert(markup))))
"""Pool for markup converters.
Each markup class, subclassing ``markupmirror.markup.base.BaseMarkup``, must register to this pool using ``register_markup`` defined below.
"""
"""Registers a markup converter class.
``markup`` must be a subclass of ``BaseMarkup`` and may not be registered already.
""" # check for correct subclassing "Markups must be subclasses of " "markupmirror.markup.base.BaseMarkup. %r is not." % markup)
"""Unregisters a markup converter with the name ``markup_name``. Fails silently if no converter was registered by that name. """
"""Returns one markup converter by name. Raises ``KeyError`` if no converter was registered by ``name``.
"""
|