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

Ignore language specifiers after newlines in Markdown code blocks #283

Merged
merged 1 commit into from Jan 28, 2024

Conversation

harupy
Copy link
Contributor

@harupy harupy commented Sep 9, 2023

The current implementation thinks the following markdown codeblock is python code, but it's not:

```
python a.py
```

This PR fixes this issue.

@adamchainz adamchainz changed the title Fix regular expression for markdown to ignore newlines after opening backticks Ignore language specifiers after newlines in Markdown code blocks Jan 28, 2024
@adamchainz adamchainz enabled auto-merge (squash) January 28, 2024 06:51
@adamchainz adamchainz merged commit 555ec31 into adamchainz:main Jan 28, 2024
7 checks passed
@adamchainz
Copy link
Owner

Thanks! I made a few improvements and merged the fix.

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

Successfully merging this pull request may close these issues.

None yet

2 participants