I confess I had not seen this command before (read all sections mentioning "title" on the manual, but should have looked into header as well haha).

However, when I tried it produced a header that apparently VSCode does not recognize, and is therefore shown only on the source file (not the preview). The expected behavior I hoped was for the title to assume the position of the first level heading (after all, it is the only one with a line underneath it). 
Should I be reading the .md file with something else? 

Apologies for my ignorance, but what would the command do? Upon searching the manual, the section "Metadata blocks" does mention one use for it, being to produce an html file or, god forbid, LaTeX; but for now just the md file seems enough for me.

On Sunday, November 1, 2020 at 6:46:44 PM UTC-3 John MacFarlane wrote:

Are you using the -s (--standalone) option?

"Juan M." <jmrc...@gmail.com> writes:

> In short, I was trying to convert a bunch of .docx files to markdown, and *pandoc
> seems to not include the text that uses the style "Title" from Microsoft
> Word when converting* (it doesn't even add the text to the output file),
> only "Headings". Check the screenshots to compare the original file and the
> output.
>
> For the sake of simplicity, I tend to just use the styles "Title", "Heading
> 1", "Heading 2" and so on, in order to reduce the friction when writing
> (see "docx" screenshot). Most of my files follow this structure, and
> although I can manually alter them, as well as start to write using only
> "Heading" styles, *I would like to know if pandoc has some sort of command
> that would fix this situation, or make the alterations simpler*.
>
> The command I am using is the following (Windows PowerShell):
> *pandoc "document title.docx" -f docx -t markdown --atx-headers -o
> "document title.md"*
>
> I chose to use the atx headings (with # instead of ===) because Visual
> Studio Code does not display the other one (setex), though I have no idea
> why.
>
> Thanks in advance for any responses,
> Juan.
>
> --
> 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-discus...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e485b64e-f091-4820-8ed5-d3f38afc610bn%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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5ee1dc74-bf61-4182-9d3c-bbad51c71cb2n%40googlegroups.com.