-
Notifications
You must be signed in to change notification settings - Fork 17
fix: quote the time formats colon :mm: to avoid flag rendering #213
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ Use colons (:) to split times between hours, minutes, and seconds. | |
| <div className="dos-and-donts" markdown="true"> | ||
| <div className="dos" markdown="true"> | ||
|
|
||
| - hh:mm:ss | ||
| - hh\:mm\:ss | ||
|
|
||
| </div> | ||
| <div className="donts" markdown="true"> | ||
|
|
@@ -50,8 +50,8 @@ Use periods (.) to add milliseconds and nanoseconds, not a colon (:) according t | |
| <div className="dos-and-donts" markdown="true"> | ||
| <div className="dos" markdown="true"> | ||
|
|
||
| - hh:mm:ss.mms | ||
| - hh:mm:ss.sss (ISO 8601 standard) | ||
| - hh\:mm\:ss.mms | ||
| - hh\:mm\:ss.sss (ISO 8601 standard) | ||
|
Comment on lines
+53
to
+54
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @danielleroux Do you know who
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What exactly do you mean with "who renders"? |
||
| - 0:00:00.920 | ||
|
|
||
| </div> | ||
|
|
@@ -279,4 +279,4 @@ Use "recent" for past events that have just happened. | |
|
|
||
| - [Dates](./date.mdx) | ||
| - [Time picker](../../../components/time-picker/index.mdx) | ||
| - [CLDR set of time zones (external link)](https://cldr.unicode.org/translation/time-zones-and-city-names) | ||
| - [CLDR set of time zones (external link)](https://cldr.unicode.org/translation/time-zones-and-city-names) | ||
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.
While escaping the colons fixes the rendering issue, a more idiomatic and robust approach in Markdown is to use backticks for inline code formatting. This clearly designates the string as a format example and prevents any special character interpretation, eliminating the need for manual escaping.
For consistency, you might consider applying this to other format examples throughout the file.
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.
This is a good idea. I thought about this. However, that would require to change Ann and also the rendering. I think this is not what we want. @tokyojen What do you think. Should we change all formats to the
hh:mm:sswriting. That would render the formats a bit different.