public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* epub-chapter-level breaks internal links
@ 2020-12-28 14:51 Gary Glass
       [not found] ` <80a1607f-2986-422e-a0c5-674e011c7414n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Glass @ 2020-12-28 14:51 UTC (permalink / raw)
  To: pandoc-discuss


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

Here's the deal: I am converting markdown to epub. One of the markdown 
files is pretty big, but it's broken up into various level-3. There are 
many cross-ref links among the items on the page. e.g.:

### B

<a id="ref1">Bar, Foo. What a mess!

### F

<a id="ref2">Foo Bar. See [Bar, Foo](#ref1)


But since the file is pretty big I use epub-chapter-level=3 to split it up 
into small chunks in the epub output. But doing that breaks the cross-ref 
links.

What are my options for getting this to work?

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/80a1607f-2986-422e-a0c5-674e011c7414n%40googlegroups.com.

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

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

* Re: epub-chapter-level breaks internal links
       [not found] ` <80a1607f-2986-422e-a0c5-674e011c7414n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-12-29 13:16   ` Gary Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Glass @ 2020-12-29 13:16 UTC (permalink / raw)
  To: pandoc-discuss


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

I figured it out. Don't use anchor tags. Instead:


### B

[]{ref1}Bar, Foo. What a mess!

### F

[]{ref2}Foo Bar. See [Bar, Foo](#ref1)


If this is in the docs I never found it. The downside to this is that the 
links don't work in a standard markdown editor. If Pandoc can handle this, 
it ought to handle using HTML anchors the same way. There's no need to 
require special formatting here.
On Monday, December 28, 2020 at 3:51:46 PM UTC+1 Gary Glass wrote:

> Here's the deal: I am converting markdown to epub. One of the markdown 
> files is pretty big, but it's broken up into various level-3. There are 
> many cross-ref links among the items on the page. e.g.:
>
> ### B
>
> <a id="ref1">Bar, Foo. What a mess!
>
> ### F
>
> <a id="ref2">Foo Bar. See [Bar, Foo](#ref1)
>
>
> But since the file is pretty big I use epub-chapter-level=3 to split it up 
> into small chunks in the epub output. But doing that breaks the cross-ref 
> links.
>
> What are my options for getting this to work?
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fcb19fb0-39ef-4dc6-b830-593825cb421dn%40googlegroups.com.

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

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

end of thread, other threads:[~2020-12-29 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28 14:51 epub-chapter-level breaks internal links Gary Glass
     [not found] ` <80a1607f-2986-422e-a0c5-674e011c7414n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-29 13:16   ` Gary Glass

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).