Hello, Jay Kamat <jaygka...@gmail.com> writes:
> I agree that vanilla markdown does not support title, but if ox-md does not > support any form of title, then there is disparity between the output of other > org exports and the markdown exporter. I would like to solve that disparity if > possible. The point of "md" export back-end is not to provide the same features as full-fledged ones like "latex" or "html". I wrote it to take care of the boring stuff of markdown syntax. Anyone willing to write a back-end with a different Markdown flavour just needs to concentrate of the differences between the original syntax. IOW, discrepancy here is not a concern. > From the markdown that I've worked with, this isn't the case. The > original markdown tool (https://daringfireball.net/projects/markdown/) > dosen't seem to output filename titles in it's export, so I wouldn't > think it's part of the vanilla standard. I don't think either. >> Maybe we eventually end up with 3 options (something like below): >> >> - org-md-title-as-h1 >> - org-md-subtitle-as-h2 >> - org-md-heading-offset > > that's probably the best idea I've heard so far, since I would imagine most > people would either not want to have two H1 headings right after each other, > or > not want to have their headings shifted. Having such options would allow > people > to pick the scenario they want (shifting headings under the title, including > the > title but no offset, or not including the title at all). I don't think this is a good idea, because it makes "ox-md.el" less neutral. That could get in the way of other back-ends. AFAIC, I think <title>...</title> or even <header>...</header> <main>...</main>, as you suggested, are better choices. Regards, -- Nicolas Goaziou