diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-04 13:45:28 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-04 14:22:34 +0300 |
commit | ff3ed5c9f8ee985bb6026dd10b8c2549782c0296 (patch) | |
tree | e180708763a3c415b6c67a17e5e47acd16a4d697 /test/fb2 | |
parent | 2388be648227ca041b6d7d6a79ad56f9175dc813 (diff) | |
download | pandoc-ff3ed5c9f8ee985bb6026dd10b8c2549782c0296.tar.gz |
FB2 writer: allow emphasis and notes in titles
Only <p> and <empty-line /> are allowed in titles,
but <p> 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.
Diffstat (limited to 'test/fb2')
-rw-r--r-- | test/fb2/titles.fb2 | 2 | ||||
-rw-r--r-- | test/fb2/titles.markdown | 2 |
2 files changed, 2 insertions, 2 deletions
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 @@ <?xml version="1.0" encoding="UTF-8"?> -<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink"><description><title-info><genre>unrecognised</genre></title-info><document-info><program-used>pandoc</program-used></document-info></description><body><title><p /></title><section><title><p>Simple title</p></title><p>This example tests if Pandoc doesn’t insert forbidden elements in FictionBook titles.</p></section><section><title><p>Emphasized Strong Title</p></title></section></body></FictionBook> +<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink"><description><title-info><genre>unrecognised</genre></title-info><document-info><program-used>pandoc</program-used></document-info></description><body><title><p /></title><section><title><p>Simple title</p></title><p>This example tests FictionBook titles.</p></section><section><title><p><emphasis>Emphasized</emphasis> <strong>Strong</strong> Title</p></title></section></body></FictionBook> 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 |