From c01ce99db7ad48630831b7c284f4e376bc3464d8 Mon Sep 17 00:00:00 2001 From: OnkarRuikar <87750369+OnkarRuikar@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:54:09 +0530 Subject: [PATCH] fix(ci/markdownlint): add a search-replace rule to put some html tags in code spans --- .markdownlint.jsonc | 7 +++++++ files/en-us/learn/forms/index.md | 2 +- files/en-us/learn/forms/styling_web_forms/index.md | 2 +- .../video_and_audio_content/index.md | 6 +++--- .../client-side_web_apis/drawing_graphics/index.md | 2 +- files/en-us/learn/learning_and_getting_help/index.md | 4 ++-- .../cross_browser_testing/feature_detection/index.md | 2 +- .../cross_browser_testing/html_and_css/index.md | 2 +- .../page_types/html_element_page_template/index.md | 2 +- files/en-us/web/api/htmlelement/change_event/index.md | 2 +- files/en-us/web/api/htmlmediaelement/index.md | 2 +- files/en-us/web/html/constraint_validation/index.md | 2 +- files/en-us/web/html/element/a/index.md | 2 +- files/en-us/web/html/element/audio/index.md | 4 ++-- files/en-us/web/html/element/input/index.md | 2 +- files/en-us/web/media/audio_and_video_delivery/index.md | 2 +- .../animation_performance_and_frame_rate/index.md | 2 +- package.json | 2 +- 18 files changed, 28 insertions(+), 21 deletions(-) diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc index 9d25f924cbc63f8..336c04696420dc0 100644 --- a/.markdownlint.jsonc +++ b/.markdownlint.jsonc @@ -231,6 +231,13 @@ "searchPattern": "/^ *> !?\\[!?((?!NOTE)[Nn][Oo][Tt][Ee]|(?!WARNING)[Ww][Aa][Rr][Nn][Ii][Nn][Gg]|(?!CALLOUT)[Cc][Aa][Ll][Ll][Oo][Uu][Tt])\\]\\n|^ *> (?!\\[!)!?\\[!?(NOTE|WARNING|CALLOUT)\\]\\n/gm", "searchScope": "text", }, + { + "name": "inline-html", + "message": "Put inline HTML tags in code spans", + "searchPattern": "/(?)/g", + "replace": "`$1`", + "searchScope": "text", + }, ], }, } diff --git a/files/en-us/learn/forms/index.md b/files/en-us/learn/forms/index.md index d6e0009007f79ef..4785bae1f41d7e7 100644 --- a/files/en-us/learn/forms/index.md +++ b/files/en-us/learn/forms/index.md @@ -65,6 +65,6 @@ The following articles aren't essential to the learning pathway, but they'll pro ## See also - [HTML forms element reference](/en-US/docs/Web/HTML/Element#forms) -- [HTML \ types reference](/en-US/docs/Web/HTML/Element/input) +- [HTML `` types reference](/en-US/docs/Web/HTML/Element/input) - [HTML attribute reference](/en-US/docs/Web/HTML/Attributes) - [User input methods and controls](/en-US/docs/Learn/Forms/User_input_methods) diff --git a/files/en-us/learn/forms/styling_web_forms/index.md b/files/en-us/learn/forms/styling_web_forms/index.md index 9c6c006855492cd..29577d77e9bead5 100644 --- a/files/en-us/learn/forms/styling_web_forms/index.md +++ b/files/en-us/learn/forms/styling_web_forms/index.md @@ -64,7 +64,7 @@ The article [Advanced form styling](/en-US/docs/Learn/Forms/Advanced_form_stylin - Elements involved in creating dropdown widgets, including {{HTMLElement("select")}}, {{HTMLElement("option")}}, {{HTMLElement("optgroup")}} and {{HTMLElement("datalist")}}. - {{HTMLElement("progress")}} and {{HTMLElement("meter")}} -For example, the date picker calendar, and the button on \` that displays an options list when clicked, can't be styled using CSS alone. The articles [Advanced form styling](/en-US/docs/Learn/Forms/Advanced_form_styling) and [How to build custom form controls](/en-US/docs/Learn/Forms/How_to_build_custom_form_controls) describe how to style these. diff --git a/files/en-us/learn/html/multimedia_and_embedding/video_and_audio_content/index.md b/files/en-us/learn/html/multimedia_and_embedding/video_and_audio_content/index.md index bb01b8d7b00d3f9..d88cd90f1b07386 100644 --- a/files/en-us/learn/html/multimedia_and_embedding/video_and_audio_content/index.md +++ b/files/en-us/learn/html/multimedia_and_embedding/video_and_audio_content/index.md @@ -48,7 +48,7 @@ We won't be teaching you how to produce audio and video files — that requires > [!NOTE] > Before you begin here, you should also know that there are quite a few OVPs (online video providers) like [YouTube](https://www.youtube.com/), [Dailymotion](https://www.dailymotion.com/), and [Vimeo](https://vimeo.com/), and online audio providers like [Soundcloud](https://soundcloud.com/). Such companies offer a convenient, easy way to host and consume videos, so you don't have to worry about the enormous bandwidth consumption. OVPs even usually offer ready-made code for embedding video/audio in your webpages; if you use that route, you can avoid some of the difficulties we discuss in this article. We'll be discussing this kind of service a bit more in the next article. -### The \