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 \