Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'caption' not recognized in code-block directive #42

Closed
jpsenior opened this issue Sep 12, 2017 · 1 comment
Closed

'caption' not recognized in code-block directive #42

jpsenior opened this issue Sep 12, 2017 · 1 comment
Labels

Comments

@jpsenior
Copy link

jpsenior commented Sep 12, 2017

When using a code-block as such:

.. code-block:: text
    :caption: This is some text
    
     This is example text

rst-lint fails with an error: 'Error in "code-block" directive: unknown option "caption"'

Omitting the caption has no error.

@twolfson
Copy link
Owner

It sounds like caption isn't a built-in directive to reStructuredText and needs to be registered. Please see our "Extension" documentation for the necessary info/methods:

https://github.com/twolfson/restructuredtext-lint/tree/1.1.1#extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants