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

Content-Type: application/json caused the lint error for sh block for markdown(.md) file #239671

Open
Mon-ius opened this issue Feb 5, 2025 · 5 comments
Assignees

Comments

@Mon-ius
Copy link

Mon-ius commented Feb 5, 2025

test case:

for README.md


curl -X PUT https://127.0.0.1/v1/order \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $token" \
    -d '{
        "id": "123"
    }'

curl -X PUT https://127.0.0.1/v1/order \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $token" \
    -d '{
        "id": "123"
    }'

Due to firstcurl has the line -H "Content-Type: application/json", the second curl will not render as expected just the first curl act as.

@Mon-ius Mon-ius changed the title Content-Type: application/json caused the lint error for sh block Content-Type: application/json caused the lint error for sh block for markdown file Feb 5, 2025
@Mon-ius Mon-ius changed the title Content-Type: application/json caused the lint error for sh block for markdown file Content-Type: application/json caused the lint error for sh block for markdown(.md) file Feb 5, 2025
@albertosantini
Copy link

What is the setup to reproduce this issue?
Is it a question for the "linter"?

@Mon-ius
Copy link
Author

Mon-ius commented Feb 6, 2025

the initial setup will casue it, no additonal md related plugin, it last for many years, seem no body notice this issue before 🤗

@albertosantini
Copy link

Well, I pasted those lines in a README.md and what I should see, because I don't notice anything weird?

Any screenshot?

@Mon-ius
Copy link
Author

Mon-ius commented Feb 6, 2025

You may need to paste the raw txt 🤗

for example,

Image Image

@albertosantini
Copy link

I missed sh block. I see this

Image

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

3 participants