From 6a519a1725a0ce7fcc0b2a26ac16ddc3badeca05 Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Tue, 25 Oct 2022 21:16:48 -0500 Subject: [PATCH] Allow markdown usage inside `alert`s --- content/blog/network-extender.md | 4 ++-- templates/shortcodes/alert.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/blog/network-extender.md b/content/blog/network-extender.md index 593d565..cc2cc30 100644 --- a/content/blog/network-extender.md +++ b/content/blog/network-extender.md @@ -17,7 +17,7 @@ Just in case, you might also want to keep around a USB keyboard and an HDMI moni ### Switch to systemd-networkd {% alert(type="warning") %} -This setup will break any DNS servers already running on your Pi, such as Pi-Hole, so make sure you know what you're getting into. +This setup *will* break any DNS servers already running on your Pi, such as Pi-Hole, so make sure you know what you're getting into. {% end %} You need to be root for the whole guide, so either use `sudo -Es` or `sudo su` to switch to the root user. @@ -68,7 +68,7 @@ network={ ``` {% alert(type="warning") %} -Your password will be stored in plain text so make sure this file is not readable by anyone you don't want seeing the password +Your password will be stored in *plain text* so make sure this file is not readable by anyone you don't want seeing the password {% end %} ### Setting up the bridge diff --git a/templates/shortcodes/alert.html b/templates/shortcodes/alert.html index 76ac05b..d7af727 100644 --- a/templates/shortcodes/alert.html +++ b/templates/shortcodes/alert.html @@ -1,3 +1,3 @@

-{{ body | safe }} +{{ body | markdown(inline=true) | safe }}