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