mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #166] What's the LaTeX writing rule in MD files? #142
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#142
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 @Tiger3018 on GitHub (Feb 13, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/166
I write markdown file with LaTeX like this style:
And MDlint just scans no synatx warning with this file. When I add one or more lines after
$$, the extension works again. So it's a bug or a real problem to write LaTeX with more than one line and using$$$$?@DavidAnson commented on GitHub (Feb 13, 2019):
What syntax errors are you expecting?
Also, please note that this project doesn’t recognize math blocks by default – though the VS Code markdownlint extension does.
@Tiger3018 commented on GitHub (Feb 13, 2019):
Yeah... I'm using VS Code but I go to this repository, maybe because of the errors showing?
Let it to be a md file and there is no first heading. (002, 041, 026 for '.' punctuation) But they can't show with latex blocks and show without them or with more lines.
@DavidAnson commented on GitHub (Feb 13, 2019):
I’m afraid I still don’t understand. Going back to your original example file above, what errors are you expecting to be reported on what lines? Or else what errors are you seeing reported that you do not think are correct?
@DavidAnson commented on GitHub (Feb 13, 2019):
[Accidental close, please see question above.]
@Tiger3018 commented on GitHub (Feb 14, 2019):
It should be reported as
But with latex block below and no more empty lines at EOF, it can't be shown.
Screenshot:
@DavidAnson commented on GitHub (Feb 14, 2019):
Got it, thanks! I’ll have a look.
@DavidAnson commented on GitHub (Feb 14, 2019):
It looks to be a bug in
markdownlintrelated to the way the math block parser outputs tokens. I can't reproduce it otherwise. Good catch, thank you!