From ff3ed5c9f8ee985bb6026dd10b8c2549782c0296 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 4 Apr 2018 13:45:28 +0300 Subject: FB2 writer: allow emphasis and notes in titles Only

and are allowed in titles, but

has the same type as an ordinary paragraphs. Therefore, there is no need to remove emphasis from titles. Also, don't intersperse paragraph with empty lines. --- test/fb2/titles.fb2 | 2 +- test/fb2/titles.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/fb2') diff --git a/test/fb2/titles.fb2 b/test/fb2/titles.fb2 index 49a741b57..4e56fb3e6 100644 --- a/test/fb2/titles.fb2 +++ b/test/fb2/titles.fb2 @@ -1,3 +1,3 @@ -unrecognisedpandoc<p />

<p>Simple title</p>

This example tests if Pandoc doesn’t insert forbidden elements in FictionBook titles.

<p>Emphasized Strong Title</p>
+unrecognisedpandoc<p />
<p>Simple title</p>

This example tests FictionBook titles.

<p><emphasis>Emphasized</emphasis> <strong>Strong</strong> Title</p>
diff --git a/test/fb2/titles.markdown b/test/fb2/titles.markdown index 1eaf2ccd5..1d405a3c1 100644 --- a/test/fb2/titles.markdown +++ b/test/fb2/titles.markdown @@ -1,6 +1,6 @@ # Simple title -This example tests if Pandoc doesn't insert forbidden elements in FictionBook titles. +This example tests FictionBook titles. # *Emphasized* **Strong** Title -- cgit v1.2.3