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.1.tar.gz (31.7 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.1-py2.py3-none-any.whl (418.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file jupyter_retext_language_server-1.0.1.tar.gz.

File metadata

File hashes

Hashes for jupyter_retext_language_server-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d67ca86f472697f0e67e99890953892c4af5cdefc23a72a50865608c75f6c62a
MD5 da6056da1fdfd075954479c6026554ff
BLAKE2b-256 445c9d7b4f55c5b5b8e0a706e8070b4c032735599d614b46376f5b59a7ef9603

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_retext_language_server-1.0.1.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.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_retext_language_server-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1fa093d3973ec11a9395697e3a741f377101bb5857ee78b92fa8aeb2861134ff
MD5 9618b4cc1e2a53869154857f97576a84
BLAKE2b-256 f5860097874a3183961fcab213c4609bcb4fd9ec7dd3c7caf9d62d6055b6f52a

See more details on using hashes here.

Provenance

The following attestation bundles were made for jupyter_retext_language_server-1.0.1-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