diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 709f78c4eec8c3f64ab166359fd9c98be37facc1..473185b18cb4d349890ee6c571e21cce78bcf4ab 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -51,7 +51,9 @@ repos:
     rev: 0.7.10
     hooks:
       - id: mdformat
-        exclude: example
+        additional_dependencies:
+          - mdformat-frontmatter
+          - mdformat-gfm
 
   - repo: https://git.shore.co.il/nimrod/pre-commit-hooks.git
     rev: v0.2.0
diff --git a/example/left-to-right.md b/example/left-to-right.md
index 0f9dabb6966e2df1e4ae9b6bc703299984012b2a..664d251359af1e7eb0fad4c9cf278480c315dc8c 100644
--- a/example/left-to-right.md
+++ b/example/left-to-right.md
@@ -2,8 +2,7 @@
 dir: rtl
 lang: he
 mainfont: SILEOT.ttf
-...
-
+---
 
 # ׳ž׳©׳”׳• ׳‘׳¢׳‘׳¨׳™׳×
 
diff --git a/example/presentation.md b/example/presentation.md
index e387a1dc436018f7dcc176edd8db7b591508113f..848447ff1012d677aa30c6d43da347e7267e43a9 100644
--- a/example/presentation.md
+++ b/example/presentation.md
@@ -2,7 +2,7 @@
 title: Presentation
 author: Your name here
 theme: metropolis
-...
+---
 
 # Section
 
@@ -20,4 +20,5 @@ theme: metropolis
 ![Animated gif](prompt.gif)
 
 ## External image
+
 ![External image](https://git.shore.co.il/nimrod/rcfiles/-/raw/master/.face)