mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #369] MD037 Not Detecting Error Consistently #312
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jamesmrollins on GitHub (Jan 22, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/369
Hi @DavidAnson
I cannot seem to get this line of code to clear the test indicated in the title of this issue. Funny thing is, the exact line of text is used earlier in the document, but seems to avoid detection. I literally copied and pasted this line lower down in the document. The MTL logo is italicized and the whole line is bold face. I am not sure how to correct his.
Line earlier in the document that is not detected
Line in question that violates rule MD037
As shown in GitHub Actions
@DavidAnson commented on GitHub (Jan 23, 2021):
It's hard to tell from the screenshots and I don't seem to have access to that repository (https://github.com/mtl/blue), but what seems likely is that there is another '' somewhere earlier that is unmatched and therefore skewing the results. My guess is that it's the one in data_ui. By spec, that should not be relevant for this rule, but this rule exists to identify scenarios that are outside the spec and so it can get confused by things like that. If you find and escape (with '') the relevant '', that should address the issue.
@jamesmrollins commented on GitHub (Jan 23, 2021):
The full code is below. I'm sorry I can't share the repo with you, it doesn't belong to me, I'm just a contributor. I checked for an unpaired quote elsewhere in the table, but was unable to locate any. As you can see with the code below, that same line of code exists all over the place in the file.
Code Follows
@DavidAnson commented on GitHub (Jan 23, 2021):
I can't do much with the rendered Markdown. If you put it in a code block, GitHub should preserve the original text.
@jamesmrollins commented on GitHub (Jan 23, 2021):
Code block as requested - thank you.
@DavidAnson commented on GitHub (Jan 23, 2021):
Thanks, that confirms its due to
data_uiin the text like I suggested above. Changing todata\_uiavoids the warning.@jamesmrollins commented on GitHub (Jan 23, 2021):
I will check it out. Thank you.
@jamesmrollins commented on GitHub (Jan 23, 2021):
Yes - that corrected the problem. Thanks for your help @DavidAnson.