I'm guessing the issue is that the heading for your table is inside the tbody element, rather than thead. > On Jul 13, 2023, at 11:03 PM, 'Michael Mell' via pandoc-discuss wrote: > > I am trying to convert HTML pages from our Confluence Wiki to Github Flavored Markdown for the Github Wiki. > > I want to remove all formatting to get a "vanilla" Markdown output without embedded HTML. I settled on this command for the moment: > > ```sh > pandoc failing_table_tidy_reduced.html -f html-native_divs-native_spans -t gfm-raw_html -o failing_table_tidy_reduced.md > ``` > > **(The contents of `failing_table_tidy_reduced.html` are pasted below.)** > > The Markdown output is OK for the most part, except that the table headers are systematically broken. I get this for the example file that is pasted below: > > ```md > | | | | > |------------------------------------------------|-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------| > | Step 1: Select to open image as virtual stack. | Step 2: Select image folder and open dataset. | Step 3: View with opened image stack. Use the slider of in the phase contrast histogram (top) to adjust image saturation for better channel visibility. | > | ![](attachments/314948158/314950704.png) | ![](attachments/314948158/314950710.png) | ![](attachments/314948158/314950785.png) | > ``` > > Whereas I expect the text (ie. "Step N: ...") to be in the table header, like so: > > ```md > | Step 1: Select to open image as virtual stack. | Step 2: Select image folder and open dataset. | Step 3: View with opened image stack. Use the slider of in the phase contrast histogram (top) to adjust image saturation for better channel visibility. | > |------------------------------------------------|-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------| > | ![](attachments/314948158/314950704.png) | ![](attachments/314948158/314950710.png) | ![](attachments/314948158/314950785.png) | > ``` > > What am I doing wrong? > > --- > This is the content of `failing_table_tidy_reduced.html`: > > ```html > > > > "HTML Tidy for HTML5 for Linux version 5.6.0"> > Title > > > > > >
> "width: 48.0112%;"> > > > > > > > > > > > > > > > > >
>

Step 1: Select to open image as virtual stack.

>
>

Step 2: Select image folder and open dataset.

>
Step 3: View with opened image stack. Use > the slider of in the phase contrast histogram (top) to adjust image > saturation for better channel visibility.
>
>

"confluence-embedded-file-wrapper confluence-embedded-manual-size"> draggable="false" height="250" src= > "attachments/314948158/314950704.png" data-image-src= > "attachments/314948158/314950704.png" > data-unresolved-comment-count="0" data-linked-resource-id= > "314950704" data-linked-resource-version="1" > data-linked-resource-type="attachment" > data-linked-resource-default-alias="image2022-4-26_15-0-46.png" > data-base-url="https://my.url.com" > data-linked-resource-content-type="image/png" > data-linked-resource-container-id="314948158" > data-linked-resource-container-version="61" alt="">

>
>
>
>

"confluence-embedded-file-wrapper confluence-embedded-manual-size"> draggable="false" height="250" src= > "attachments/314948158/314950710.png" data-image-src= > "attachments/314948158/314950710.png" > data-unresolved-comment-count="0" data-linked-resource-id= > "314950710" data-linked-resource-version="1" > data-linked-resource-type="attachment" > data-linked-resource-default-alias="image2022-4-26_15-1-20.png" > data-base-url="https://my.url.com" > data-linked-resource-content-type="image/png" > data-linked-resource-container-id="314948158" > data-linked-resource-container-version="61" alt="">

>
>
>
>

"confluence-embedded-file-wrapper confluence-embedded-manual-size"> draggable="false" height="250" src= > "attachments/314948158/314950785.png" data-image-src= > "attachments/314948158/314950785.png" > data-unresolved-comment-count="0" data-linked-resource-id= > "314950785" data-linked-resource-version="1" > data-linked-resource-type="attachment" > data-linked-resource-default-alias="image2022-4-26_15-12-47.png" > data-base-url="https://my.url.com" > data-linked-resource-content-type="image/png" > data-linked-resource-container-id="314948158" > data-linked-resource-container-version="61" alt="">

>
>
>
> > > ``` > > -- > 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/e4b6b290-ab59-4ff6-83ac-47b017e033f5n%40googlegroups.com . -- 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/617D7B7C-C5B6-43D3-9789-5014701BF8AC%40gmail.com.