Skip to content

Command preprocessing with quote not working (e.g. with the jq library) #201

@pringshia

Description

@pringshia

Describe the bug
I'm using the jq library to format some JSON.

Here's what my markdown file looks like:

# Testing JSON formatting

```
~~~jq '.'
[{"q": "test"}]
~~~
```

Here's the command being run on the command line, to ensure it works as expected:

$ echo '[{"q": "test"}]' | jq '.'
[
  {
    "q": "test"
  }
]

Expected behavior
I'm expecting the code block to show the output of what I see when I run the command above in the command line.

I've verified that the file has chmod +x permissions and other commands work.

Screenshots
Just getting an empty code block. I've verified that the file has chmod +x permissions and other commands work.

CleanShot 2022-11-19 at 15 02 13

Desktop (please complete the following information):

  • OS: Apple MBP, M1 Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions