summaryrefslogtreecommitdiff
path: root/src/mistune/directives/__init__.py
blob: 660c4c83bd1b1b5a6ca8c097d4738e4505393484 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from ._base import DirectiveParser, BaseDirective, DirectivePlugin
from ._rst import RSTDirective
from ._fenced import FencedDirective
from .admonition import Admonition
from .toc import TableOfContents
from .include import Include
from .image import Image, Figure

    
class RstDirective(RSTDirective):  # pragma: no cover
    def __init__(self, plugins):
        super(RstDirective, self).__init__(plugins)
        import warnings
        warnings.warn(
            "'RstDirective' is deprecated, please use 'RSTDirective' instead.",
            DeprecationWarning,
            stacklevel=2,
        )


__all__ = [
    'DirectiveParser',
    'BaseDirective',
    'DirectivePlugin',
    'RSTDirective',
    'FencedDirective',
    'Admonition',
    'TableOfContents',
    'Include',
    'Image', 'Figure',
]