Markdown renderer for trame 
trame-markdown extend trame widgets with a component that is capable of rendering Markdown syntax. Markdown integration into trame allow user to display markdown content easily. If you want are wondering what Markdown is, you can look at some online guides.
Installing
trame-markdown can be installed with pip:
pip install --upgrade trame-markdown
Usage
The Trame Tutorial is the place to go to learn how to use the library and start building your own application.
The API Reference documentation provides API-level documentation.
License
trame-markdown is made available under the MIT License. For more details, see LICENSE This license has been chosen to match the one use by Markdown It Vue which is used under the cover.
Community
Trame | Discussions | Issues | RoadMap | Contact Us
Enjoying trame?
Share your experience with a testimonial or with a brand approval.
Code sample
from trame.widgets import markdown
widget = markdown.Markdown("""
> #### The quarterly results look great!
>
> - Revenue was off the chart.
> - Profits were higher than ever.
>
> *Everything* is going according to **plan**.
""")
widget.update(md_file.read())
But if you rather be in control of your variable, you can use the property content.
from trame.widgets import markdown
widget = markdown.Markdown(content=("var_name", "**hello**"))
Development
To update client side, just update the version and run the following commands.
mkdir -p trame_markdown/module/serve
cd trame_markdown/module/serve
curl -L https://registry.npmjs.org/markdown-it-vue/-/markdown-it-vue-1.1.7.tgz | tar --strip-components=1 -xzv
JavaScript dependency
This Python package bundle the following set of libraries:
github-markdown-css@5.2.0
markdown-it@13.0.1
markdown-it-anchor@8.6.7
markdown-it-container@3.0.0
markdown-it-deflist@2.1.0
markdown-it-emoji@2.0.2
markdown-it-footnote@3.0.3
markdown-it-mathjax3@4.3.2
markdown-it-sub@1.0.0
markdown-it-sup@1.0.0
markdown-it-toc-done-right@4.2.0
nanoid@4.0.2
picocolors@1.0.0
shiki@0.14.4
shiki-processor@0.1.3
If you would like us to upgrade any of those dependencies, please reach out.
Metadata
Release files for trame-markdown 3.1.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 |
|---|---|---|---|---|
| trame-markdown-3.1.0.tar.gz | 5.9 MB | Without provenance | Details for trame-markdown-3.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trame_markdown-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for trame_markdown-3.1.0-py3-none-any.whl |
Total release size: 11.9 MB
Release files / trame-markdown-3.1.0.tar.gz
| Download URL | trame-markdown-3.1.0.tar.gz |
|---|---|
| Size | 5.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afc0621f484895e1e022d940a10b71b45c3411d0b69e67ce86c6f7df1492f766
|
|
BLAKE2b-256 checksum How to use checksums |
46645932640abfd69bdfafd242e36010844e1f69c8a06b6e69b635e46ef7cab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/44.0 requests/2.32.4 requests-toolbelt/1.0.0 urllib3/2.4.0 tqdm/4.67.1 importlib-metadata/8.7.0 keyring/25.6.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.18
|
Release files / trame_markdown-3.1.0-py3-none-any.whl
| Download URL | trame_markdown-3.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a91949294f50dda09f659bb565595ff4e376f005a8d01210dfd7f8c43b581ddf
|
|
BLAKE2b-256 checksum How to use checksums |
a2918fa66a86369ae3da262b3ad8b27a3a8afa95ef7717b4a32827ebb52feaba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/44.0 requests/2.32.4 requests-toolbelt/1.0.0 urllib3/2.4.0 tqdm/4.67.1 importlib-metadata/8.7.0 keyring/25.6.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.18
|
Security for trame-markdown 3.1.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.