fix: MD022 space around headers#15310
Conversation
Using experimental --fix flag
mairaw
left a comment
There was a problem hiding this comment.
Argh, just noticed there are some merge conflicts. Can you fix those? Thanks.
|
@mairaw I can fix this by re-running it, but do you want to fix the (whole) repo yourself now that the
|
|
Neat idea but I'm a bit on the fence if I really wanna do this global change like this. @dotnet/docs any thoughts? |
|
You can do it in pieces by changing the glob pattern too. EX: |
|
I get that and I usually submit global changes piecemeal. My point is more: I'll gladly review and accept PRs for this kind of change, but this is not a high priority for our team to go do it at this moment, given the size of our backlog. I hope it makes sense. |
@mairaw I prefer not to do bulk changes to implement rules that don't have any negative impact on doc rendering. In this case I would say the rule itself is unnecessary. I follow the pattern dictated by the rule myself but I don't see the need to impose it on everyone. @nschonni I appreciate your time spent standardizing our Markdown, I just am not convinced of the benefit of this one. Regarding bulk updates in general, I would do them only where it's demonstrably necessary. I've seen instances where they've been done without carefully reviewing each and every change, and in some contexts the change doesn't make sense or the author had a reason for doing things a particular way, a reason not immediately apparent to a superficial skimming of changes. |
|
@tdykstra this rule does affect rendering on GitHub, but AFAIK, docfx didn't tighten its rendering at the same time a year ago |
|
@nschonni Can you show an example; screenshot perhaps? I don't see any difference in rendering. :) |
|
Sorry, I think I'm mixing up the rule where the hash is stuck at the beginning of the heading. EX: ##Not rendered as headingVS Code and some others don't like the stuck content in some cases for syntax highlighting. <a href="dumy">
## When to Create a Component |
|
I think we've started adding them as part of the heading title. Let me see if I can find an example. |
Summary
Trying out the experimental --fix flag on the VB docs after enabling the MD022 rule. Actual diff was 2K documents for that folder so just added a small subset.
Fixes #Issue_Number (if available)