From 23fd488c380c347a3d0121a49b6285bdd65418a2 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 30 Jul 2021 08:56:36 +0300 Subject: [PATCH] Add missing newlines around fenced codeblocks (#34630) --- site/content/docs/5.0/components/alerts.md | 1 + site/content/docs/5.0/components/modal.md | 1 + 2 files changed, 2 insertions(+) diff --git a/site/content/docs/5.0/components/alerts.md b/site/content/docs/5.0/components/alerts.md index 338976323..1df07983e 100644 --- a/site/content/docs/5.0/components/alerts.md +++ b/site/content/docs/5.0/components/alerts.md @@ -196,6 +196,7 @@ var alerts = [].slice.call(alertList).map(function (element) { return new bootstrap.Alert(element) }) ``` + {{< callout info >}} For the sole purpose of dismissing an alert, it isn't necessary to initialize the component manually via the JS API. By making use of `data-bs-dismiss="alert"`, the component will be initialized automatically and properly dismissed. diff --git a/site/content/docs/5.0/components/modal.md b/site/content/docs/5.0/components/modal.md index 56fad0297..7b8902820 100644 --- a/site/content/docs/5.0/components/modal.md +++ b/site/content/docs/5.0/components/modal.md @@ -838,6 +838,7 @@ Activate a modal without writing JavaScript. Set `data-bs-toggle="modal"` on a c ```html ``` + #### Dismiss {{% js-dismiss "modal" %}}