diff --git a/CHANGELOG.md b/CHANGELOG.md
index 03269e66..5c4378f3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## Unreleased
+
+### Bug Fixes
+
+- Figure helper breaks when using code markup in caption. [#4841](https://github.com/mmistakes/minimal-mistakes/issues/4841)
+
## [4.26.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.26.1)
### Bug Fixes
diff --git a/_includes/figure b/_includes/figure
index 5819424b..7c539d2d 100644
--- a/_includes/figure
+++ b/_includes/figure
@@ -1,5 +1,5 @@
- {%- if include.popup -%}
" }}{% endif %}">{%- endif -%}
+ {%- if include.popup -%}{%- endif -%}
diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md
index cf300438..e9c198fe 100644
--- a/docs/_docs/18-history.md
+++ b/docs/_docs/18-history.md
@@ -5,7 +5,7 @@ permalink: "/docs/history/"
excerpt: Change log of enhancements and bug fixes made to the theme.
sidebar:
nav: docs
-last_modified_at: '2024-05-10T18:00:47+08:00'
+last_modified_at: '2024-05-15T00:46:38+08:00'
toc: false
---
@@ -15,6 +15,12 @@ toc: false
-->
{% raw %}
+## Unreleased
+
+### Bug Fixes
+
+- Figure helper breaks when using code markup in caption. [#4841](https://github.com/mmistakes/minimal-mistakes/issues/4841)
+
## [4.26.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.26.1)
### Bug Fixes