-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown lint fixes #530
Markdown lint fixes #530
Conversation
15f6794
to
c400696
Compare
Caught while testing.
closing and reopening to trigger the checks. (I ran markdown lint on my branch, and it passed). |
I'm not sure about that one. Is this required in order to fix MD032? It feels to me like it makes the end of the note more obscure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine apart from the "end note at end of last bullet of list" commit, which I'm personally not keen on. We could potentially merge as-is then discuss that separately, or remove that commit and merge the rest.
If we have a resolution, I can make the changes. (Then I tackle the last warning tomorrow.) I wasn't sure this was the way we wanted to go either. I see a few options. For background, I looked at the C# 5 standard (Word format). In that document, the end note is inline with the end of the note, whether that note is a standalone paragraph, a paragraph with a list, or an inline note. Now, using the blockquote for notes and examples, all notes are one or more paragraphs. The style we've adopted forces all notes into their own paragraphs. In most cases, the end note text is the end of the last paragraph (or list item) in the note. I'd propose one of three normal forms:
This PR standardizes on (2). I'm open to the other options. Thoughts? |
I would suggest (1) with the exception that a single-paragraph note can "inline" the end into the same paragraph. So for example, we have this in lexical-structure.md:
I think that's fine as-is, but that only a paragraph that starts with "Note" should end with "end note" if you see what I mean. |
I like @jskeet 's suggestion. I did a quick search, and I found 241 instances of end note in the repo (including some tests and code in the markdown converter.) I recommend merging this, and creating a new issue for the end note / end example formatting. I can address that one early next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, Bill's plan sounds good to me.
I moved MD036 (Using emphasis instead of heading) to the section of warnings we globally disable. The only instances were single paragraphs that were intentionally bold or italic, but not meant to be headings. (For example, in the documentation comments clause on the example, or some "end example" text that appears as its own paragraph.)
Note that I skipped MD031 in this PR. It should be a single PR due to the very large number of occurrences.
Notes for reviewers:
It will be easiest to review using a combination of hide whitespace, and going commit by commit.