diff --git a/src/main.ts b/src/main.ts index 40ad7c6..13ddea7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -848,8 +848,11 @@ title: * Replace the
 tag with the new admonition.
              */
             const parent = el.parentElement;
-            if (parent && !parent.hasClass('admonition-content')) {
-                parent.addClass('admonition-parent', `admonition-${type}-parent`)
+            if (parent && !parent.hasClass("admonition-content")) {
+                parent.addClass(
+                    "admonition-parent",
+                    `admonition-${type}-parent`
+                );
             }
             el.replaceWith(admonitionElement);
             return admonitionElement;
diff --git a/src/util/util.ts b/src/util/util.ts
index 7a3d7d5..673a45f 100644
--- a/src/util/util.ts
+++ b/src/util/util.ts
@@ -105,7 +105,7 @@ export function getParametersFromSource(
         collapse = "closed";
     }
 
-    if (!title || !title.length) {
+    if (!("title" in params)) {
         if (!admonition.noTitle) {
             title = admonitionTitle;
         }