# trame-markdown **Repository Path**: mirrors_Kitware/trame-markdown ## Basic Information - **Project Name**: trame-markdown - **Description**: Trame widget to embed markdown content into a trame application - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-12 - **Last Updated**: 2026-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README .. |pypi_download| image:: https://img.shields.io/pypi/dm/trame-markdown Markdown renderer for trame |pypi_download| =========================================================================== .. image:: https://github.com/Kitware/trame-markdown/actions/workflows/test_and_release.yml/badge.svg :target: https://github.com/Kitware/trame-markdown/actions/workflows/test_and_release.yml :alt: Test and Release 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 `_: .. code-block:: bash 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 `_ .. image:: https://zenodo.org/badge/410108340.svg :target: https://zenodo.org/badge/latestdoi/410108340 Enjoying trame? ----------------------------------------------------------- Share your experience `with a testimonial `_ or `with a brand approval `_. Code sample ----------------------------------------------------------- .. code-block:: python 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`. .. code-block:: python 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. .. code-block:: bash 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 `_.