public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Anchor in Docbook -> RST
@ 2022-03-15 18:47 Hamid Kobdani
  0 siblings, 0 replies; only message in thread
From: Hamid Kobdani @ 2022-03-15 18:47 UTC (permalink / raw)
  To: pandoc-discuss


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

 dear all,

I am trying to convert Docbook to RST using Pandoc.
Pandoc reads the docbook "anchor" like this (
https://github.com/jgm/pandoc/blob/a0818597439fc242da4c379e0f0c54136f7a316c/src/Text/Pandoc/Readers/DocBook.hs#L1114
):

---
case qName (elName e) of
        "anchor" -> do
           return $ spanWith (attrValue "id" e, [], []) mempty
---

and when it creates RST with it the anchors are ignored.

how can I solve this problem?

-- 
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/98f167cb-20f5-426c-9967-a460ba8c3184n%40googlegroups.com.

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-15 18:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 18:47 Anchor in Docbook -> RST Hamid Kobdani

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