public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* FB2 output: support for explicit header identifiers
@ 2019-01-16  4:31 John Doe
       [not found] ` <274c34c6-ec5a-40c8-b7ed-8bc6e4eb48ae-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John Doe @ 2019-01-16  4:31 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2695 bytes --]

It would be good to have a possibility to set explicit identifier for 
header (and produce section element with that id), as now it is ignored. 
Although footnote produces correct section element witd id.

** the pandoc version*

pandoc 2.5

** the exact command line used*

pandoc -s -o test.fb2 test.md

** the exact input used*

# Section 1

Footnote[^f1]

[^f1]: my footnote

My link [link](#l1)

# Section 2 {#l1}

Section text

** the output received*

<?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>Section 1</p></title><p>Footnote<a 
l:href="#n1" type="note"><sup>[1]</sup></a></p><p>My link <a 
l:href="#l1">link</a></p></section><section><title><p>Section 
2</p></title><p>Section text</p></section></body><body 
name="notes"><section *id="n1"*><title><p>1</p></title><p>my 
footnote</p></section></body></FictionBook>

** the output you expected instead*

<?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>Section 1</p></title><p>Footnote<a 
l:href="#n1" type="note"><sup>[1]</sup></a></p><p>My link <a 
l:href="#l1">link</a></p></section><section *id="l1"*><title><p>Section 
2</p></title><p>Section text</p></section></body><body 
name="notes"><section id="n1"><title><p>1</p></title><p>my 
footnote</p></section></body></FictionBook>

As we can see footnote produces correct section with id and link works. 
Explicit link creates only correct link element, but there are no target as 
section id is not set.

Also it would be good to have opportunity to return raw content for fb2 (as 
it is xml-based format). Now they are also ignored.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/274c34c6-ec5a-40c8-b7ed-8bc6e4eb48ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 9071 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FB2 output: support for explicit header identifiers
       [not found] ` <274c34c6-ec5a-40c8-b7ed-8bc6e4eb48ae-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-01-16 23:25   ` John MacFarlane
       [not found]     ` <yh480k7ef418xq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2019-01-16 23:25 UTC (permalink / raw)
  To: John Doe, pandoc-discuss


These are good requests; can you put an issue on the
github bug tracker for pandoc?

John Doe <alloyx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> It would be good to have a possibility to set explicit identifier for 
> header (and produce section element with that id), as now it is ignored. 
> Although footnote produces correct section element witd id.
>
> ** the pandoc version*
>
> pandoc 2.5
>
> ** the exact command line used*
>
> pandoc -s -o test.fb2 test.md
>
> ** the exact input used*
>
> # Section 1
>
> Footnote[^f1]
>
> [^f1]: my footnote
>
> My link [link](#l1)
>
> # Section 2 {#l1}
>
> Section text
>
> ** the output received*
>
> <?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>Section 1</p></title><p>Footnote<a 
> l:href="#n1" type="note"><sup>[1]</sup></a></p><p>My link <a 
> l:href="#l1">link</a></p></section><section><title><p>Section 
> 2</p></title><p>Section text</p></section></body><body 
> name="notes"><section *id="n1"*><title><p>1</p></title><p>my 
> footnote</p></section></body></FictionBook>
>
> ** the output you expected instead*
>
> <?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>Section 1</p></title><p>Footnote<a 
> l:href="#n1" type="note"><sup>[1]</sup></a></p><p>My link <a 
> l:href="#l1">link</a></p></section><section *id="l1"*><title><p>Section 
> 2</p></title><p>Section text</p></section></body><body 
> name="notes"><section id="n1"><title><p>1</p></title><p>my 
> footnote</p></section></body></FictionBook>
>
> As we can see footnote produces correct section with id and link works. 
> Explicit link creates only correct link element, but there are no target as 
> section id is not set.
>
> Also it would be good to have opportunity to return raw content for fb2 (as 
> it is xml-based format). Now they are also ignored.
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/274c34c6-ec5a-40c8-b7ed-8bc6e4eb48ae%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FB2 output: support for explicit header identifiers
       [not found]     ` <yh480k7ef418xq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2019-01-17  6:22       ` John
  0 siblings, 0 replies; 3+ messages in thread
From: John @ 2019-01-17  6:22 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 4018 bytes --]

Yes, sure. Here it is: https://github.com/jgm/pandoc/issues/5229

четверг, 17 января 2019 г., 2:26:09 UTC+3 пользователь John MacFarlane 
написал:
>
>
> These are good requests; can you put an issue on the 
> github bug tracker for pandoc? 
>
> John Doe <all...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> writes: 
>
> > It would be good to have a possibility to set explicit identifier for 
> > header (and produce section element with that id), as now it is ignored. 
> > Although footnote produces correct section element witd id. 
> > 
> > ** the pandoc version* 
> > 
> > pandoc 2.5 
> > 
> > ** the exact command line used* 
> > 
> > pandoc -s -o test.fb2 test.md 
> > 
> > ** the exact input used* 
> > 
> > # Section 1 
> > 
> > Footnote[^f1] 
> > 
> > [^f1]: my footnote 
> > 
> > My link [link](#l1) 
> > 
> > # Section 2 {#l1} 
> > 
> > Section text 
> > 
> > ** the output received* 
> > 
> > <?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>Section 1</p></title><p>Footnote<a 
> > l:href="#n1" type="note"><sup>[1]</sup></a></p><p>My link <a 
> > l:href="#l1">link</a></p></section><section><title><p>Section 
> > 2</p></title><p>Section text</p></section></body><body 
> > name="notes"><section *id="n1"*><title><p>1</p></title><p>my 
> > footnote</p></section></body></FictionBook> 
> > 
> > ** the output you expected instead* 
> > 
> > <?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>Section 1</p></title><p>Footnote<a 
> > l:href="#n1" type="note"><sup>[1]</sup></a></p><p>My link <a 
> > l:href="#l1">link</a></p></section><section *id="l1"*><title><p>Section 
> > 2</p></title><p>Section text</p></section></body><body 
> > name="notes"><section id="n1"><title><p>1</p></title><p>my 
> > footnote</p></section></body></FictionBook> 
> > 
> > As we can see footnote produces correct section with id and link works. 
> > Explicit link creates only correct link element, but there are no target 
> as 
> > section id is not set. 
> > 
> > Also it would be good to have opportunity to return raw content for fb2 
> (as 
> > it is xml-based format). Now they are also ignored. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "pandoc-discuss" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 
> <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/274c34c6-ec5a-40c8-b7ed-8bc6e4eb48ae%40googlegroups.com. 
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9b1a0e7f-fc54-4fcc-8cf1-bfff85d297bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 8880 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-17  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16  4:31 FB2 output: support for explicit header identifiers John Doe
     [not found] ` <274c34c6-ec5a-40c8-b7ed-8bc6e4eb48ae-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-01-16 23:25   ` John MacFarlane
     [not found]     ` <yh480k7ef418xq.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-01-17  6:22       ` John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).