From 9a0516abc4fe737e5668a07cb815446fbd821f29 Mon Sep 17 00:00:00 2001
From: Michal Hoftich <michal.h21@gmail.com>
Date: Sun, 20 Nov 2022 23:00:13 +0100
Subject: [PATCH] added support for the fn-in option

---
 CHANGELOG.md        | 4 ++++
 tex4ebook-epub3.4ht | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6eb2ed4..1445c80 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changes
 
+- 2022/11/20
+
+  - added support for the `fn-in` option in the Epub 3 output.
+
 - 2022/03/29
 
   - fixed support for \TeX\ filenames that contain dot.
diff --git a/tex4ebook-epub3.4ht b/tex4ebook-epub3.4ht
index 9d49b62..5d7460f 100644
--- a/tex4ebook-epub3.4ht
+++ b/tex4ebook-epub3.4ht
@@ -76,6 +76,9 @@
 
 % Structural elements
 
+\:CheckOption{fn-in}
+\if:Option
+\else
 % Foootnote configuration for epub3
 % Footnotes are printed directly after the paragraph they appeared in
 % footnotebox - configure box in which footnotes are printed
@@ -114,3 +117,4 @@
 
 \Css{.footnote{font-size:small;}}
 \Css{.footnotes hr{width:30\%;margin:0 auto 0 0;}}
+\fi