CloudBlue Connect Markdown Renderer
Introduction
connect-markdown-renderer is a small library that allow to render markdown documents in a terminal shell.
Install
connect-markdown-renderer can be installed from pypi.org with pip:
$ pip install connect-markdown-renderer
Usage example
from connect.utils.terminal.markdown import render
my_md = """
# Heading level 1 - Paragraph
This is a paragraph with inline formatting like *italic*, **strong**, ~~strikethrough~~, `inline code` and :clapping_hands: emojis!.
## Heading level 2 - Lists
*Ordered list:*
1. First item
2. Second item
3. Third item
**Unordered list:**
* First
* Second
* Third
### Heading level 3 - blockquote
> This is a blockquote.
> > ...and a nested blockquote.
#### Heading level 4 - tables
| Col 1 | Col 2 | Col 3 |
|:------|:-----:|------:|
| a | b | c |
##### Heading level 5 - codeblock
```python
def this_is_my_python_function(args):
return 'Hello World!'
"""
print(render(my_md))
This code will produce the following output:
Features
connect-markdown-renderer uses the new markdown-it-py parser and supports
CommonMark plus the following extensions:
- tables
- strikethrough
- emoji
connect-markdown-renderer uses rich to render the markdown in the terminal.
License
connect-markdown-renderer is released under the Apache License Version 2.0.
Metadata
Release files for connect-markdown-renderer 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| connect_markdown_renderer-3.0.0.tar.gz | 10.8 kB | Without provenance | Details for connect_markdown_renderer-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| connect_markdown_renderer-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for connect_markdown_renderer-3.0.0-py3-none-any.whl |
Total release size: 22.4 kB
Release files / connect_markdown_renderer-3.0.0.tar.gz
| Download URL | connect_markdown_renderer-3.0.0.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0dc1fd6229af84b624da40bbaae1d64f81ce105bfa451fa8baa808796191f9d3
|
|
BLAKE2b-256 checksum How to use checksums |
376bf8fe989c9b2283f3e1aea3ac9b3101d555258d721d700ea886f0b1fc7525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.3 Linux/5.15.0-1037-azure
|
Release files / connect_markdown_renderer-3.0.0-py3-none-any.whl
| Download URL | connect_markdown_renderer-3.0.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
078ab8830f520edc9d4c87ee963820ea70b84fccc72cf1d052e2ba7207c157ab
|
|
BLAKE2b-256 checksum How to use checksums |
67842ff369292fbb776be515fd4c292b85ee0779b61f6f95d58b29805278f29b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.11.3 Linux/5.15.0-1037-azure
|
Security for connect-markdown-renderer 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.