Skip to content

What's the best way to add support for sphinx directives in markdown cells? #762

@peytondmurray

Description

@peytondmurray

I have a lot of existing notebooks that have sphinx directives embedded in their markdown cells - stuff like

{meth}`foo_method <foo.bar.Baz.foo_method>`

or

{ref}`this code snippet <this-py>`

I know I can turn these into properly supported links using [this code snippet](path_to_file.rst#this-py) or similar, but the code base I'm working with is huge, and has previously used myst-nb to do this, so replacing every reference would be a serious effort. I'm trying to think about other ways to handle this with nbsphinx; what's the best way to handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions