Skip to main content

Additional markdown rendering support in markdown.

Project description

jupyterlab-markup

npm-badge pypi-badge binder-badge

Adds additional rendering support to markdown in JupyterLab by using markdown-it, and the following plugins:

Prerequisites

  • JupyterLab 2

Limitations

Most custom markdown extensions not covered by the default marked-based renderer (e.g. task lists, header anchors) will not work for others who do not have this extension installed. Markdown is very lenient, so no data should be lost, but it might look strange.

Installation

Install extension:

pip install jupyterlab_markup
jupyter labextension install @agoose77/jupyterlab-markup

Ensure the extensions are enabled:

jupyter labextension list      # should contain @goose/jupyterlab-markup
jupyter serverextension list   # should contain jupyterlab_markup

If the serverextension is missing, try...

jupyter serverextension enable jupyterlab_markup

Usage

After installing the extension (and restarting/reloading JupyterLab), all plugins will be enabled by default.

All plugins (and markdown-it itself) can be disabled via the Command Palette or under the Settings menu with Use Markdown Extensions. This will not affect existing renderers, so open documents will need to be reopened.

Individual plugins can be previewed, enabled/disabled from the palette or menu under Markdown Extension Settings.... This view also provides links and examples of any features added by the extensions.

Advanced

A number of settings can be configured through the JupyterLab Advanced Settings Editor, including plugin and markdown-it options. As with the above limitations, heavy customization might make your documents look strange.

Contributing

Please see the contributor guide!

Examples

mermaid

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

svgbob

     .---.
    /-o-/--
 .-/ / /->
( *  \/
 '-.  \
    \ /
     '

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_markup-1.0.0a0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

jupyterlab_markup-1.0.0a0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page