Skip to main content

A language server for Markdown documents that supports retext plugins

Project description

jupyter-retext-language-server

A retext language server for Jupyter LSP. This builds upon the unified-language-server by exposing a simple configuration mechanism.

Plugins

By default, the jupyter-retext-language-server ships with pre-installed with the retext-spell plugin out of the box.

Extending

New retext plugins can be defined through Python entry points, e.g.

[project.entry-points.jupyter_retext_language_server_plugin_v1]
retext-spell = "jupyter_retext_language_server.plugins:retext_spell"

The retext_spell name in the jupyter_retext_language_server.plugins module has the following form:

Entry points

retext_spell = {
    "path": /path/to/retext-spell.mjs",
    "properties_schema": {
        "retext.plugins.retext-spell.enabled": {
            "type": "boolean",
            "default": True,
            "description": "Enable retext-spell plugin.",
        },
        // ... etc
    }
}

It is through this entry point that the settings schema and path to the ESM module can be defined.

ESM plugin

The ESM plugin exposed by the Python entry point must define two named exports, e.g.

export const name = "retext-spell";

export async function plugin(spellConfig) {
  // Plugin impl
  return (tree, file, next) => {};
}

These define the name (which maps to the plugin name in the properties schema), and the plugin implementation that is invoked by the plugin manager.

Future development ideas

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

jupyter_retext_language_server-1.0.0.post2.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_retext_language_server-1.0.0.post2-py2.py3-none-any.whl (418.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file jupyter_retext_language_server-1.0.0.post2.tar.gz.

File metadata

File hashes

Hashes for jupyter_retext_language_server-1.0.0.post2.tar.gz
Algorithm Hash digest
SHA256 a0498515091344f9e41513bde9bf5e390b8d0aeb44242b2b8dd6a9f51bb426e7
MD5 246ec76afd18d1619ec80452b84e0429
BLAKE2b-256 e3a7f15bb4cbf46fae258acd7fa3f0ade613949e32ee5c9494d8d87370de012c

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_retext_language_server-1.0.0.post2.tar.gz:

Publisher: publish.yml on agoose77/jupyter-retext-language-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jupyter_retext_language_server-1.0.0.post2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_retext_language_server-1.0.0.post2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0abca109d23ae8cb62ab0b9ae926660c665a53663f6ae4ed28e0e6f0a8592799
MD5 c5064184db7025962f4ace289c3719c3
BLAKE2b-256 0ccff37a26a5e887c4a591f71461e6c94fd1232f1fad0718d95f4b0e8ff271f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_retext_language_server-1.0.0.post2-py2.py3-none-any.whl:

Publisher: publish.yml on agoose77/jupyter-retext-language-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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