diff --git a/src/html.rs b/src/html.rs
index f853ed5b..353945be 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -14,8 +14,10 @@ use std::sync::LazyLock;
use crate::is_fence;
+/// Matches the start of an HTML `
` tag, ignoring case.
static TABLE_START_RE: LazyLock =
LazyLock::new(|| Regex::new(r"(?i)^|$)").unwrap());
+/// Matches the end of an HTML `
` tag, ignoring case.
static TABLE_END_RE: LazyLock = LazyLock::new(|| Regex::new(r"(?i)
").unwrap());
/// Extracts the text content of a DOM node, collapsing consecutive
diff --git a/tests/integration.rs b/tests/integration.rs
index b54b8edb..5dd145f9 100644
--- a/tests/integration.rs
+++ b/tests/integration.rs
@@ -426,6 +426,12 @@ fn test_convert_html_table_with_attrs_basic() {
assert_eq!(convert_html_tables(&html_table_with_attrs()), expected);
}
+#[test]
+fn test_convert_html_table_uppercase() {
+ let expected = vec!["| A | B |", "| --- | --- |", "| 1 | 2 |"];
+ assert_eq!(convert_html_tables(&html_table_uppercase()), expected);
+}
+
#[test]
fn test_convert_html_table_with_colspan() {
let expected = vec!["| A |", "| --- |", "| 1 | 2 |"];