Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/markdown/__init__.py: 86%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

1# Python Markdown 

2 

3# A Python implementation of John Gruber's Markdown. 

4 

5# - Documentation: https://python-markdown.github.io/ 

6# - GitHub: https://github.com/Python-Markdown/markdown/ 

7# - PyPI: https://pypi.org/project/Markdown/ 

8 

9# Started by Manfred Stienstra (http://www.dwerg.net/). 

10# Maintained for a few years by Yuri Takhteyev (http://www.freewisdom.org). 

11# Currently maintained by Waylan Limberg (https://github.com/waylan), 

12# Dmitry Shachnev (https://github.com/mitya57) and Isaac Muse (https://github.com/facelessuser). 

13 

14# - Copyright 2007-2023 The Python Markdown Project (v. 1.7 and later) 

15# - Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b) 

16# - Copyright 2004 Manfred Stienstra (the original version) 

17 

18# License: BSD (see LICENSE.md for details). 

19 

20""" 

21Python-Markdown provides two public functions ([`markdown.markdown`][] and [`markdown.markdownFromFile`][]) 

22both of which wrap the public class [`markdown.Markdown`][]. All submodules support these public functions 

23and class and/or provide extension support. 

24 

25Modules: 

26 core: Core functionality. 

27 preprocessors: Pre-processors. 

28 blockparser: Core Markdown block parser. 

29 blockprocessors: Block processors. 

30 treeprocessors: Tree processors. 

31 inlinepatterns: Inline patterns. 

32 postprocessors: Post-processors. 

33 serializers: Serializers. 

34 util: Utility functions. 

35 htmlparser: HTML parser. 

36 test_tools: Testing utilities. 

37 extensions: Markdown extensions. 

38""" 

39 

40from __future__ import annotations 

41 

42from .core import Markdown, markdown, markdownFromFile 

43from .__meta__ import __version__, __version_info__ # noqa 

44 

45# For backward compatibility as some extensions expect it... 

46from .extensions import Extension # noqa 

47 

48__all__ = ['Markdown', 'markdown', 'markdownFromFile']