[GH-ISSUE #1141] MD050 Regression #2471

Closed
opened 2026-03-07 20:08:04 +03:00 by kerem · 4 comments
Owner

Originally created by @mvilrokx on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1141

Problem

When I use v0.27.0 (via markdownlint-cli2 v0.6.0) the following is raised as an error:

Summary: 1 error(s)
...md:173:80 MD050/strong-style Strong style should be consistent [Expected: underscore; Actual: asterisk]

When I use v0.28.1 (via markdownlint-cli2 v0.7.0) the following are raised as errors:

Summary: 1 error(s)
...md:173:80 MD050/strong-style Strong style should be consistent [Expected: underscore; Actual: asterisk]

When I use v0.29.0 (via markdownlint-cli2 v0.8.0) or later, no errors are raised.

MD050 Regression

The MD050 omission is definitely a regression because it should get reported as a linting error:

- The deployment __kube-state-metrics__ must have a replica count of 1 for the **kube-state-metrics**

As you can see, the last strong word (**kube-state-metrics**) should get flagged.

This was caught because our build-platform uses an older version (not under our control) but our GHA is using the latest version.

Originally created by @mvilrokx on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1141 # Problem When I use `v0.27.0` (via `markdownlint-cli2` `v0.6.0`) the following is raised as an error: ```text Summary: 1 error(s) ...md:173:80 MD050/strong-style Strong style should be consistent [Expected: underscore; Actual: asterisk] ``` When I use `v0.28.1` (via `markdownlint-cli2` `v0.7.0`) the following are raised as errors: ```text Summary: 1 error(s) ...md:173:80 MD050/strong-style Strong style should be consistent [Expected: underscore; Actual: asterisk] ``` When I use `v0.29.0` (via `markdownlint-cli2` `v0.8.0`) _or later_, **no errors** are raised. ## `MD050` Regression The `MD050` omission is definitely a regression because it should get reported as a linting error: ```markdown - The deployment __kube-state-metrics__ must have a replica count of 1 for the **kube-state-metrics** ``` As you can see, the last strong word (`**kube-state-metrics**`) should get flagged. This was caught because our build-platform uses an older version (not under our control) but our GHA is using the latest version.
kerem 2026-03-07 20:08:04 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Feb 27, 2024):

I think you are reporting the following bug where the very first or last word with improper emphasis will not be flagged: https://github.com/DavidAnson/markdownlint/issues/1132

If so, I have already fixed this for the next release. Sorry about that!

<!-- gh-comment-id:1967751652 --> @DavidAnson commented on GitHub (Feb 27, 2024): I think you are reporting the following bug where the very first or last word with improper emphasis will not be flagged: https://github.com/DavidAnson/markdownlint/issues/1132 If so, I have already fixed this for the next release. Sorry about that!
Author
Owner

@mvilrokx commented on GitHub (Feb 27, 2024):

Possible, I will test when it gets released 👍.

<!-- gh-comment-id:1967821622 --> @mvilrokx commented on GitHub (Feb 27, 2024): Possible, I will test when it gets released 👍.
Author
Owner

@DavidAnson commented on GitHub (Feb 28, 2024):

It looks like the same thing. You can see that even adding a period at the end is enough to get the second emphasis flagged: https://dlaa.me/markdownlint/#%25m%23%20Issue%201141%0A%0A-%20The%20deployment%20__kube-state-metrics__%20must%20have%20a%20replica%20count%20of%201%20for%20the%20kube-state-metrics.%0A

<!-- gh-comment-id:1968005164 --> @DavidAnson commented on GitHub (Feb 28, 2024): It looks like the same thing. You can see that even adding a period at the end is enough to get the second emphasis flagged: https://dlaa.me/markdownlint/#%25m%23%20Issue%201141%0A%0A-%20The%20deployment%20__kube-state-metrics__%20must%20have%20a%20replica%20count%20of%201%20for%20the%20**kube-state-metrics**.%0A
Author
Owner

@DavidAnson commented on GitHub (Feb 28, 2024):

Confirmed duplicate of https://github.com/DavidAnson/markdownlint/issues/1132 and fixed in next branch.

<!-- gh-comment-id:1968152541 --> @DavidAnson commented on GitHub (Feb 28, 2024): Confirmed duplicate of https://github.com/DavidAnson/markdownlint/issues/1132 and fixed in `next` branch.
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#2471
No description provided.