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

add log node #38

Open
chrisjsewell opened this issue Apr 11, 2022 · 0 comments
Open

add log node #38

chrisjsewell opened this issue Apr 11, 2022 · 0 comments

Comments

@chrisjsewell
Copy link
Member

docutils has the concept of a system_message node, which can be inserted into the AST at points of failure.

As an example, in unified-myst, this is what is currently output for an error in the table directive:

```{table} This is a caption
:name: test
:class: a

Hallo
```
type: root
children:
  - type: mystDirective
    name: table
    args:
      - This is a caption
    options:
      name: test
      class:
        - a
    value: Hallo
    bodyOffset: 4
    children:
      - type: log
        message: >-
          Error parsing content block for the "table" directive: exactly one
          table expected.
        level: error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant