public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* ODF headings wth invisible numbers showing up in generated Markdown
@ 2021-06-16 18:54 Rene Hartmann
       [not found] ` <4083fed7-5e61-284e-04b8-ec309b4c0770-vWmkjy3IYvA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Rene Hartmann @ 2021-06-16 18:54 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I'm trying to convert ODF documents to Markdown which contain headings 
with (as it seems) invisible numbers which show up in the generated 
Markdown document.

It looks like this in the resulting Markdown:


1.  1.  This is a heading
         -----------------

I can fix this by removing the number (which is not visible in 
LibreOffice) manually from all the headings but it's tedious. Is there a 
way to fix this during conversion?

--
René Hartmann

-- 
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/4083fed7-5e61-284e-04b8-ec309b4c0770%40ibka.org.


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

* Re: ODF headings wth invisible numbers showing up in generated Markdown
       [not found] ` <4083fed7-5e61-284e-04b8-ec309b4c0770-vWmkjy3IYvA@public.gmane.org>
@ 2021-06-16 19:30   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2021-06-16 19:30 UTC (permalink / raw)
  To: Rene Hartmann, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


If you do `pandoc -t native` you can see how pandoc is parsing
this, and then construct a filter to remove the hidden list
structure.  I can't do this for you, but there's documentation
on the website about writing filters.

Rene Hartmann <rene.hartmann-vWmkjy3IYvA@public.gmane.org> writes:

> I'm trying to convert ODF documents to Markdown which contain headings 
> with (as it seems) invisible numbers which show up in the generated 
> Markdown document.
>
> It looks like this in the resulting Markdown:
>
>
> 1.  1.  This is a heading
>          -----------------
>
> I can fix this by removing the number (which is not visible in 
> LibreOffice) manually from all the headings but it's tedious. Is there a 
> way to fix this during conversion?
>
> --
> René Hartmann
>
> -- 
> 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/4083fed7-5e61-284e-04b8-ec309b4c0770%40ibka.org.

-- 
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/m27dit38vv.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net.


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

end of thread, other threads:[~2021-06-16 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 18:54 ODF headings wth invisible numbers showing up in generated Markdown Rene Hartmann
     [not found] ` <4083fed7-5e61-284e-04b8-ec309b4c0770-vWmkjy3IYvA@public.gmane.org>
2021-06-16 19:30   ` John MacFarlane

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