mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #293] Top of file markdownlint comment displays in the browser #251
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#251
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 @185driver on GitHub (Jun 3, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/293
It seems my top of file markdownlint comment is wrapped in paragraph tags when sent to the browser (Chrome). As a result, my comment displays along with my markdown text. Can this wrapping behavior be avoided? I'd prefer comments not to be displayed.
@DavidAnson commented on GitHub (Jun 3, 2020):
markdownlint does not render anything, so the paragraph wrapping behavior you describe is being done by some other tool in your workflow. If that tool supports comments but just not at the top of the file, you can use the
markdownlint-disable-filecomment to move that to the bottom of your file instead (and have it still apply to the entire file). If your renderer does not support comments at all, you may need to change the markdownlint configuration in JSON or YAML instead.@185driver commented on GitHub (Jun 3, 2020):
@DavidAnson Thank you for replying. You're right, my apologies. It was being caused by a setting in the Markdown Preview Plus Chrome extension I use to display markdown in the browser. Resolved.