[GH-ISSUE #130] MD038 disallows line breaks for inline code snippets #110

Closed
opened 2026-03-03 01:23:48 +03:00 by kerem · 4 comments
Owner

Originally created by @raxod502 on GitHub (Jul 6, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/130

I commonly have text like this, as a result of hard line wrapping:

There are a few other Yarn tasks available, each runnable with `yarn
<task>`.

But it is disallowed by MD038; why? Is there something else I should be doing instead?

Originally created by @raxod502 on GitHub (Jul 6, 2018). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/130 I commonly have text like this, as a result of hard line wrapping: ``` There are a few other Yarn tasks available, each runnable with `yarn <task>`. ``` But it is disallowed by MD038; why? Is there something else I should be doing instead?
kerem 2026-03-03 01:23:48 +03:00
Author
Owner

@DavidAnson commented on GitHub (Jul 6, 2018):

This seems like a bug in my code, sorry!

https://spec.commonmark.org/0.28/#code-spans

<!-- gh-comment-id:403166404 --> @DavidAnson commented on GitHub (Jul 6, 2018): This seems like a bug in my code, sorry! https://spec.commonmark.org/0.28/#code-spans
Author
Owner

@DavidAnson commented on GitHub (Jul 7, 2018):

Could you please try your example here: https://dlaa.me/markdownlint/

What you have above does not trigger MD038 for me. Might there be something else to this?

<!-- gh-comment-id:403177654 --> @DavidAnson commented on GitHub (Jul 7, 2018): Could you please try your example here: https://dlaa.me/markdownlint/ What you have above does not trigger MD038 for me. Might there be something else to this?
Author
Owner

@raxod502 commented on GitHub (Jul 7, 2018):

Sorry, I really should have made sure this was reproducible as a standalone example before opening this. It appears that a third line is necessary:

# Heading

There are a few other Yarn tasks available, each runnable with `yarn
<task>`. The `dev` task actually just runs `server` and `watch` in
parallel. The `server` task serves the built static files, while
<!-- gh-comment-id:403219091 --> @raxod502 commented on GitHub (Jul 7, 2018): Sorry, I really should have made sure this was reproducible as a standalone example before opening this. It appears that a third line is necessary: ```markdown # Heading There are a few other Yarn tasks available, each runnable with `yarn <task>`. The `dev` task actually just runs `server` and `watch` in parallel. The `server` task serves the built static files, while ```
Author
Owner

@DavidAnson commented on GitHub (Jul 7, 2018):

No worries! It’s probably the odd count of ticks that’s confusing things. I’ll fix this soon, sorry again.

<!-- gh-comment-id:403223866 --> @DavidAnson commented on GitHub (Jul 7, 2018): No worries! It’s probably the odd count of ticks that’s confusing things. I’ll fix this soon, sorry again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#110
No description provided.