Hi All,
New to pandoc, and trying to use it to create a Word doc that is a dump of our DevOps wiki tree. It's failing to recognize some of the headers as headers, because Microsoft didn't follow the standard (*gasp!*) or possibly because I'm using the wrong from format? (I've been using commonmark_x as the from format, at the suggestion of the friend who pointed me at pandoc in the first place, but I've tried a few others as well to no avail.)
A header like:
# thing1
works fine, but a header like:
#thing2 (without the space)
does not. I looked at using Lua filters, but it seems too late; pandoc isn't reconising it as a header in the first place, as evidenced by converting it to native:
[ Header 3 ( "thing1" , [] , [] ) [ Str "thing1" ]
, Para [ Str "stuff" ]
, Para
[ Str "#thing2"
, Space
, Str "(without"
, Space
, Str "the"
, Space
, Str "space)"
]
, Para [ Str "more" , Space , Str "stuff" ]
]
I can just script-bash up something horrible to s/^(#+)(\S.*)$/\1 \2/ everything, but who knows what I'd break, or what else I'd miss, and that way lies madness. Hoping there's a cleaner fix?
Thanks for any advice,
- rob.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9798935e-bb5a-4164-a68e-633a198d69ecn%40googlegroups.com.