Skip to content
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

Markdownlint fixes #37255

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Markdownlint fixes #37255

merged 1 commit into from
Oct 25, 2022

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Oct 4, 2022

Just a few things markdownlint caught in https://github.com/twbs/bootstrap/tree/main-xmr-markdownlint

Unfortunately, we can't add markdownlint due to the FPs we are getting due to Hugo.

Also, the rules I went with are lax, I went mostly for consistency, but we could adapt the other branch and then the fixes here.

UNTESTED

Preview: https://deploy-preview-37255--twbs-bootstrap.netlify.app/

@@ -205,9 +205,7 @@ Used for creating the CSS animations for our spinners. Included in `scss/_spinne


[color]: {{< docsref "/utilities/colors" >}}
[display]: {{< docsref "/utilities/display" >}}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this and the next change should ring a bell and mean we are missing a link/or we need to tweak the wording in this page.

@@ -11,7 +11,7 @@ toc: true
Offcanvas is a sidebar component that can be toggled via JavaScript to appear from the left, right, top, or bottom edge of the viewport. Buttons or anchors are used as triggers that are attached to specific elements you toggle, and `data` attributes are used to invoke our JavaScript.

- Offcanvas shares some of the same JavaScript code as modals. Conceptually, they are quite similar, but they are separate plugins.
- Similarly, some [source Sass](#sass) variables for offcanvas's styles and dimensions are inherited from the modal's variables.
- Similarly, some [source Sass](#sass-variables) variables for offcanvas's styles and dimensions are inherited from the modal's variables.
Copy link
Member Author

@XhmikosR XhmikosR Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was indeed broken

@@ -126,7 +126,7 @@ The size of `.placeholder`s are based on the typographic style of the parent ele

### Animation

Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better convey the perception of something being _actively_ loaded.
Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better convey the perception of something being *actively* loaded.
Copy link
Member

@julien-deramond julien-deramond Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question here. Based on the rest of the diff, I suppose that a rule regarding emphasis is set (like MD049). But the other modifications are *word*_word_. Do you know why it is in the other way just here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, because the default is consistent, see the description.

I don't mind enforcing it, but this way we have the minimum changes.

Copy link
Member

@julien-deramond julien-deramond Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have any issues with the consistency but my point is that in the modifications of this PR you have:

  • 7 times *word* -> _word_
  • 1 time (here) _word_ -> *word* (the opposite)

The latter seems weird to me since it breaks the consistency; everything should be _word_ at the end shouldn't it?

Copy link
Member

@julien-deramond julien-deramond Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like I said the default option is consistent per file. I honestly do not
care about it as long as it catches some real issues (like it does).

Oh "per file". OK I didn't have this information so I now understand the behavior. Thx.

@XhmikosR
Copy link
Member Author

XhmikosR commented Oct 4, 2022 via email

@XhmikosR XhmikosR marked this pull request as ready for review October 25, 2022 18:28
@XhmikosR
Copy link
Member Author

XhmikosR commented Oct 25, 2022

I say we land this and we tweak the markdownlint config in my branch for the future.

Or, feel free to revert any of the changes you don't like, I don't mind. I mostly want the real fixes, using * or _ is something we need to agree on and it's minor anyway. Although, I'd like to be consistent in the future.

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's land this! 🚀

@XhmikosR
Copy link
Member Author

BTW there's an action we could use. It's just that we need to find a way to exclude some false positives due to the Hugo markup.

@XhmikosR XhmikosR merged commit 7166e95 into main Oct 25, 2022
@XhmikosR XhmikosR deleted the xmr/markdownlint-fixes branch October 25, 2022 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants