Also, I should add, everything works fine if I use the full URL instead, i.e. "this is [wiki](http://www.foo.com)". On Saturday, January 17, 2015 at 6:03:18 AM UTC-8, Ranjit Jhala wrote: > > Hi, > > I am writing a small filter for converting from markdown to latex, and > getting the odd behavior, reproduced below > via GHCi: > > > Prelude Text.Pandoc.JSON Text.Pandoc> readMarkdown def "this is > [wiki][foo]" > > Pandoc (Meta {unMeta = fromList []}) [Para [Str "this",Space,Str "is", > Space,Str "[wiki][foo]"]] > > > Namely, the citation `[wiki][foo]` is read as a String, and hence when > converted > to LaTeX rendered the wrong way (i.e. without the HREF). > > I suspect I have the wrong `ReaderOptions` in `def` -- but I don't know > which flags to add. > > I am writing this filter following the suggestion from here: > > https://groups.google.com/d/msg/pandoc-discuss/Kd1L4Rg0dx0/NZvgcMcz9NQJ > > the above only happens inside the filtered blocks -- citations of the > above form work just fine when inside the "regular" > unfiltered document. > > Any suggestions would be most welcome! > > Ranjit. > > > -- 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/28b2fdce-fb75-4705-8133-27acf99ebc7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.